Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

time zone in my shop


ms-signs

Recommended Posts

Posted
How can I set the correct time zone in my shop?

ask the hosting provider to set correct time on the server or you can modify the date function in language file (correct if I wrong).

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Posted

Time is a funny thing. If a hosting service has clients in more than two timezones, which one is "correct".

 

There are several ways to manipulate date/time in php and since osC uses a couple itself and takes its time settings from the php interpreter, it is probably easiest for most to include a date.timezone setting in their php.ini file (if php > 5 and TZ is not set).

 

Otherwise, the php > 5 function date_default_timezone_set could be used in a top level script. Valid timezones are here:

http://us2.php.net/manual/en/timezones.php

 

Or you could indeed modify time by arithmetic methods in the many calls to mktime().

 

Any way you do it, if you do not have direct access to the mysql binary, you will not be able to set the database engine's time and it will continue to use the true server time (whether it is "correct" or not) making visual synchronization between any number of other osC functions seemingly out-of-whack.

 

Just modify the configured date strings to show the server time zone is my solution.

For ALL problems, please review this link first -> osCommerce Knowledge Base

Posted
Just modify the configured date strings to show the server time zone is my solution.

 

How can I do this? excuse my ignorance.

 

Thank you!

Posted

This is from includes/languages/english.php:

 

define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S - %Z');

 

The added " - %Z" will display the abbreviation of the time zone that is set in the server.

 

You are welcome.

For ALL problems, please review this link first -> osCommerce Knowledge Base

Posted

I don't know if this helps or not, but several people have told me this works:

 

Server Timezone fix 1.0

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

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

×
×
  • Create New...