Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

server time vs shop location


moyashi

Recommended Posts

Posted

Ok, my site is hosted on the west coast of the states and my shop is here in Japan. How do I change the time of my shop without changing the server time (which I doubt will be possible).

 

I'm asking because all of my test orders are showing up about 9 hours later than they should.

 

I tried to do a search with "+time +server" on the forums but ... ugh ... everything is like "IF I had the time ...." "I'm getting a server time out ...." etc ...

 

Any advice would be much appreciated :D

NewsDesk(934) / FAQDesk(1106) / OrderCheck(1168) :::

Posted

in your includes\footer.php you have this

 

 

<td class="footer">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>

 

which means it will return the local time of the visitor's browser.

Posted
in your includes\footer.php you have this

 

 

<td class="footer">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>

 

which means it will return the local time of the visitor's browser.

 

Incorrect - This just formats the date according to the server's locale settings.

 

I think the original poster is more concerned about the date that appears in E-mails and the like (the date that PHP uses), rather than the date displayed.

javascript is no help here, either.

 

You can change the times, but it will involve a bit of fiddling. Doing a google for "php timezones" should give you a few ideas to get you started.

Posted
Incorrect - This just formats the date according to the server's locale settings.

 

oops, thats what I meant (not visitor's browser) since the strftime runs basically on the server end.

Archived

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

×
×
  • Create New...