Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

date & time


Recommended Posts

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



Link to comment
Share on other sites

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


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

  • Create New...