moyashi Posted September 15, 2005 Posted September 15, 2005 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) :::
Guest Posted September 15, 2005 Posted September 15, 2005 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.
MoisesZaragoza Posted September 15, 2005 Posted September 15, 2005 You can get the time using Java script. This will get the time from the clients computer. at the end of the day the code will be good
FalseDawn Posted September 15, 2005 Posted September 15, 2005 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.
Guest Posted September 15, 2005 Posted September 15, 2005 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.