Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Time change??


endee

Recommended Posts

I want to change the timezone for my store so that my correct local time (EST) shows when an order is placed. Where is the timezone setting stored??

 

Thanks for any help - much appreciated

Link to comment
Share on other sites

  • 1 month later...

please do a search on this, as it has been discussed numerous times in the last few days. this is something which needs to originate with your host, as it is a server issue, not an osCommerce issue. most computers are set to GMT.

 

remember, here the Search is your best friend.

Link to comment
Share on other sites

please do a search on this, as it has been discussed numerous times in the last few days. this is something which needs to originate with your host, as it is a server issue, not an osCommerce issue. most computers are set to GMT.

 

remember, here the Search is your best friend.

I a searching 3 days..... and i am really feeling hopeless about it. and wit me many others. my host is telling me its osCommerce time zone or local time...

:blink:

Link to comment
Share on other sites

<?php
// 3600 == one hour
// see www.php.net/date for what all the  F jS etc etc means

echo "<li>In the UK, it is now " . date("l F jS @ H:i:s a");
echo "<li>5 hours ago it was " . date("l F jS @ H:i:s a",(time()-18000));
echo "<li>10 hours ago it was " . date("l F jS @ H:i:s a",(time()-36000));
echo "<li>5 hours into the future is " . date("l F jS @ H:i:s a",(time()+18000));
echo "<li>10 hours into the future is " . date("l F jS @ H:i:s a",(time()+36000));
echo "<li>A week ago it was " . date("l F jS @ H:i:s a",(time()-604800));
echo "<li>This time last year it was " . date("l F jS Y @ H:i:s a",(time()-31449600));
?>

 

Amend to suit your needs.

Link to comment
Share on other sites

  • 2 weeks later...

Archived

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

×
×
  • Create New...