Server Side: Time Zonesstarted by Dave_smith on Oct 3, 2004 — RSS Feed
I am living in Trinidad but my server is based in the UK - a time zone about 5 hours different from mine.
When I use SSI to indicate "this page was last updated on ...." I obviously get the time and date of the server on not my local time.
I can't find - despite many Google searches - how to change this time zone. Any advice please?
var hoursOffset = 5;
localTime = new Date();
I trust that you know how to call this from your SSI.
You could save me some research by dropping a few hints on how to call this script from my SSI.
I'd need to see the SSI to be certain. Are you inserting something like #localtime# and not just #time# or #gmtime# ?
That's the principle but I have no way to test this myself.
That's fine thanks. I can take if from there.
You must login to reply