Succede una cosa strana quando inserisco questo codice all'interno di una pagina asp:

Infatti senza l'include le date vengono restituite correttamente nella pagina asp principale, mentre quando inserisco l'include le date diventano:

14/01/1900 28/01/1900

Nella pagina inclusa non ritrovo nulla che possa andare in conflitto con la pagina dove avviene l'inclusione.... da cosa può dipendere?

codice:

<%
session.LCID = 1040
response.buffer = True

id = session("id")
	
SQL = "SELECT * FROM tbl_login where id = " &id
Set rec = Server.CreateObject("ADODB.Recordset")
Set rec = objconn.Execute(SQL)

s = request.querystring("s")
if len(s)<1 then s = 0
s=s*10

sql = "select * from tbl_postings where connected = 0 order by updated desc" 
set rs = objconn.Execute(sql)
while not rs.eof

	count = count +1
	if count>s and count<=(s+10) then

		if count mod 2 = 0 then 
			bgcolor = "#EFEFDE"
		else
			bgcolor = "#E3E1E1" 
		end if
end if
	rs.movenext
wend

sql = "select count(id) as alleEintraege from tbl_postings where connected = 0" 
set rs = objconn.Execute(sql)

alleEintraege = Cint(rs("alleEintraege"))
%>

<%for t = 0 to fix((alleEintraege-1)/10)%>
<%if t=(s/10) then%><%end if%><%=t+1%><%if t=(s/10) then%><%end if%>
<%next%>

<%
rs.close
set rs = nothing
rec.close
set rec = nothing
end if
%>
Grazie, saluti