X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Simple Question: Date Formatting (https://forum.x-cart.com/showthread.php?t=14538)

whsu716 06-12-2005 07:50 PM

Simple Question: Date Formatting
 
Quote:

{* $Id: today_news.tpl,v 1.10 2004/05/31 06:25:32 max Exp $ *}
{if $news_message eq ""}
{$lng.txt_no_news_available}
{else}
{$news_message.send_date|date_format:$config.Appea rance.date_format}

{$news_message.body}



{if $usertype eq "C"}
{$lng.lbl_previous_news}
{/if}
{/if}
<HR size="1" noshade class="VertMenuHr">


The date is currently being shown in European format

For example June 10 2005 is showing up as : 10-06-2005 instead of 6-10-2005...

Can anyone help?
Thanks!

whsu716 06-12-2005 07:53 PM

Forget it! Got it!

For those who want to change it:

in the config.php file

Quote:

if (empty($config["Appearance"]["date_format"]))
$config["Appearance"]["date_format"] = "%d-%m-%Y";

change that to

Quote:

if (empty($config["Appearance"]["date_format"]))
$config["Appearance"]["date_format"] = "%m-%d-%Y";

whsu716 06-12-2005 08:00 PM

Ok - now it's not updating on the news module - does this have anything to do with caching?

How can I resolve this? Thanks!

TelaFirma 06-13-2005 04:08 AM

Try looking in Admin...

General Setting -> Appearance options -> Select date format:

whsu716 06-13-2005 08:08 AM

man - I've got to play around with this more...should've seen that earlier!

Thanks!


All times are GMT -8. The time now is 06:00 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.