Guest Posted March 11, 2007 Share Posted March 11, 2007 good moorning how can we edit alocal time and date instead of server date in footer? like this (Time is now: 11th March 2007 - 11:55 AM) in the footer of this page thanks Link to comment Share on other sites More sharing options...
Guest Posted March 11, 2007 Share Posted March 11, 2007 there are php support functions for gmt. Either you use those and offset the time, or you use the regular time functions who display the server local time and offset them. Now if you want to find the user's location and display the page with the local time you could use jscript Date() object with getTimezoneOffset (or some other client-side script) which will retrieve it from the visitor's location and display it. The code that shows currently the server local time is in catalog\includes\footer.php Link to comment Share on other sites More sharing options...
Guest Posted March 12, 2007 Share Posted March 12, 2007 thanks alot I want to set the time for store location.(egypt) so where and what I must edit? Link to comment Share on other sites More sharing options...
Guest Posted March 12, 2007 Share Posted March 12, 2007 you need to do jscript and php coding. Here is a generic example it may help you out. http://www.mtdev.com/2002/06/use-php-and-j...lay-local-time/ You need to port it for oscommerce and customize it for your store. Link to comment Share on other sites More sharing options...
Guest Posted March 12, 2007 Share Posted March 12, 2007 thank you verry much I will try it and rep. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.