Welcome Guest! | Sign Up | Log in

Forum Sections > Website > Time stamp


rebbonk
Minor point I know, but the time stamp on my posts is still GMT. Any way of changing it to BST? Do other users see only GMT?

Just asking like. :)
Miserable old f*cker (MOF) Jul 4 2012 at 17:03:12 GMT


Wazza
i see GMT
Jul 4 2012 at 17:35:05 GMT


JackSparrow
Actually the timestamp is generated from the servers own internal system time clock, which stores a number of seconds which have elapsed from 1970. Something like 11138929392. The letters "GMT" are just written in static.

I could update the timestamp plugin so that it can take an optional timezone value and then give you the choice of seeing the timestamps in any timezone you prefer in the control panel.

The thing is I'm now working on the next version of the core software so I'm more inclined to put updates like that into it, rather than patch the old version which I'm going to replace soon anyway.
Webmaster of AhoyNoob Jul 4 2012 at 18:30:59 GMT


JackSparrow
Yeh, well for consistency the database is always going to be recording server time on postings.

What I'm going to do is make it so you can go

[time zone="GMT"]now[/time]

and then the code of the time plugin will simply load up the value, add or remove the timezone variable (+/- 12hrs) and display the result.

To connect it to the user account I'm going to do this :

[time zone="[user]timezone[/user]"]now[/time]

then store a value in user->timezone to indicate GMT, BST etc

That way every client automatically sees the same time but adjusted to their own zone.
Webmaster of AhoyNoob Jul 4 2012 at 21:32:07 GMT


Go To Top

Please login to add reply


Username:
Password: