Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

date & time


Guest

Recommended Posts

Posted

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

Posted

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

Posted

thanks alot

 

I want to set the time for store location.(egypt)

 

so

 

where and what I must edit?

Posted

thank you verry much

 

I will try it and rep.

Archived

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

×
×
  • Create New...