Forum Moderators: phranque

Message Too Old, No Replies

Changing time on shared server?

         

aus_dave

12:33 am on Feb 19, 2003 (gmt 0)

10+ Year Member



I have some sites on a shared server in a different timezone. I'm implementing a shopping cart and there are some time-sensitive functions that I want to be in local time.

Is there any way to offset the server time by a fixed amount for a domain via .htaccess or something similar?

I suspect I will have to do this via re-coding the script which is tedious to say the least. Thought I would ask about this first as I love a good shortcut ;).

brotherhood of LAN

3:19 am on Feb 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Are you using a scripting language? You could get a timestamp and add or take away 3600 seconds depending on what timezone you want it to re-align to.

aus_dave

3:39 am on Feb 19, 2003 (gmt 0)

10+ Year Member



The shopping cart is written in PHP but to change the time function in the code across numerous modules etc. is what has stopped me from doing it so far.