Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server time and date..?

Status
Not open for further replies.

adamsoderqvist

Programmer
Sep 8, 2001
136
SE
I have (not surprisingly) a problem B-)

When I do this:

Response.Write Date & ", " & Time

I get the right date, but the time is ALWAYS 20 minutes late. This is probably due to that the server time isn't set correctly, but is there a way of always be sure of that the correct time is always set? (In my app, I am depending on this...)

/Thanx
 
How are you defining "correct" time? According to the server, that is the "correct" time. If you know that it is always going to be 20 minutes off, then you should probably account for it in your page and just add/subtract 20 minutes. Not the best solution, but not sure of another one off the top of my head.

------------------------------------------------------------------------------------------------------------------------
If you don't have a sense of humor, you probably don't have any sense at all.
- Anonymous
 
Yeah that's true - the servers time is correct to the server...

No, I was thinking maybe there was a way of retrieve the time from some sort of "uniclock" or something of the like. But no, I'm gonna set it + 20 mins. in my app.

/Thanx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top