Forums / General Questions / Why can't I change the date format?

Why can't I change the date format?

Locked

Views: 1,198

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
14 Aug 2009, 10:01 PM
#1
ipc1 avatar

ipc1

New Zenner

Join Date:
Aug 2009
Posts:
9
Plugin Contributions:
0

Why can't I change the date format?

I have edited the following in both english.php files:

define('DATE_FORMAT_LONG', '%l, %F %j%S, %Y'); // this is used for strftime()

and the output should be Friday, August 14th, 2009, but instead it is showing as 4 2009-08-14 22640, 2009

What gives?

15 Aug 2009, 2:41 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Why can't I change the date format?

IPC1:

I have edited the following in both english.php files:

define('DATE_FORMAT_LONG', '%l, %F %j%S, %Y'); // this is used for strftime()

and the output should be Friday, August 14th, 2009, but instead it is showing as 4 2009-08-14 22640, 2009

What gives?
Actually it's doing exactly what you told it to do.
See the documentation on the parameters here: http://www.php.net/manual/en/function.strftime.php

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Aug 2009, 5:28 AM
#3
ipc1 avatar

ipc1

New Zenner

Join Date:
Aug 2009
Posts:
9
Plugin Contributions:
0

Re: Why can't I change the date format?

DrByte:

Actually it's doing exactly what you told it to do.
See the documentation on the parameters here: http://www.php.net/manual/en/function.strftime.php

Whoops! I guess I had date() function parameters on my mind. Thanks!