Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Configuring Time Zone


oringmonkey

Recommended Posts

Posted

Tried doing a search on this but couldn't find anything relevant.

 

I've noticed that when orders come in that the time is not within my time zone. Example, today the order came in at 9:22 pm July 31, 2008 (California - Pacific Standard Time) but the time showing on OSCommerce is August 1, 2008 12:22 am. On "My Store" I have it configured to "United States" and Zone of "California" but that doesn't seem to do anything and I can't seem to find anything to do with time zone. I'd like to have it on my time zone so I can keep the orders that come in on that day to the true date so I can keep better track on sales.

Posted
Tried doing a search on this but couldn't find anything relevant.

 

I've noticed that when orders come in that the time is not within my time zone. Example, today the order came in at 9:22 pm July 31, 2008 (California - Pacific Standard Time) but the time showing on OSCommerce is August 1, 2008 12:22 am. On "My Store" I have it configured to "United States" and Zone of "California" but that doesn't seem to do anything and I can't seem to find anything to do with time zone. I'd like to have it on my time zone so I can keep the orders that come in on that day to the true date so I can keep better track on sales.

you can use the server time zone fix if your server is another time zone.

Posted
you can use the server time zone fix if your server is another time zone.

 

Thanks. I tried doing that prior to posting, but I couldn't find anywhere on my CP to do so. I'll contact my host.

Posted

Ok, got a fast response from my host, not sure if this will help anyone else out, but here's the solution anyways:

 

 

If you want to change the timezone setting for your scripts, there is a relatively easy way to do this using .htaccess files.

 

You should create a file called .htaccess in the directory of your scripts. The following line should be in it:

 

SetEnv TZ :UTC

 

You can change "UTC" to the time zone you want. There is a list of the available time zones at http://suresupport.com/tz/tzlist.cgi.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...