Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Where do i find day and month


gippermand

Recommended Posts

Please write me.................Thanks

 

Per Steinar

 

 

I think you'll find that's a function of the "locale" on the server.

From includes/languages/english.php:

@setlocale(LC_TIME, 'en_EN.ISO_8859-1');

define('DATE_FORMAT_SHORT', '%d/%m/%Y');  // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'd/m/Y'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

 

This is the code that puts the date in the footer:

<td align="right" class="footer" colspan="2">  <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>  </td>
 </tr></table><?php echo FOOTER_TEXT_BODY;?>

 

The relevant bit is "$counter_startdate_formatted" which is set in the includes/counter.php:

$counter_startdate_formatted = strftime(DATE_FORMAT_LONG, mktime(0, 0, 0, substr($counter_startdate, 4, 2), substr($counter_startdate, -2), substr($counter_startdate, 0, 4)));

 

The DATE_FORMAT_LONG function is in the /includes/general.php and includes/languages/yourlanguage.php but it obtains the DATE/TIME data from the server locale/time/date settings. So I think you will need to make a "substitution" function (probably in the includes/general.php file).

 

Good luck,

Steve

* * * * * * * * * * * * * * * * * * * * *

Porpoises are most happy when wet!

\ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _ \ _

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...