Posted By caroig on 11/08/2005 12:37 AM Hmm. That's not what I see on my test system. I have my portal, admin and test user all at UTC+1, when I create an article the publish time/date defaults to the server time (UTC -7) ditto viewing the article with admin or user account. Comments date/time also use server time.
Hmm, I'm a little confused by the datetime situation at the moment, here is how the code works currently:-
The client user time is calculated based on the offset from the portal time. Your portal time should really be where your server is actually located (the timezone of that server).
I got the code from this post in the forums.
What times do you get displayed for other modules, e.g. active forums if you use it?
What I am wondering now is should I just be storing the UTC time, then doing the conversion, which would make the above post wrong and I would need to do something with the current data stored. |