Post by Lasse » Thu Jul 17, 2008 9:58 pm

Hi.

At the moment my shop (which is danish) only has english dates.
I've translated all the names of the months but the date still shows the english month names.

Any suggestions?

User avatar
New member

Posts

Joined
Fri Feb 29, 2008 11:56 pm


Post by bruce » Fri Jul 18, 2008 8:17 am

Hi Lasse,

What pages? Could you post some screen shots if that is easier?

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by Lasse » Tue Jul 22, 2008 10:04 pm

Hey bruce.

One place is at the http://www.dinlydbog.dk/index.php?contr ... nt_history

I've attached a screenshot.

Attachments

???
date.jpg

User avatar
New member

Posts

Joined
Fri Feb 29, 2008 11:56 pm


Post by bruce » Tue Jul 22, 2008 11:08 pm

Hi Lasse,

You have found an internationalisation bug. The value displayed is specifically formatted that way in catalog\controller\account_history.php as follows

Code: Select all

          			'date_added' => date('d F Y', strtotime($result['date_added'])),
To honour the locale, the date value returned by strtotime must be formatted using the php function strftime.

cheers

Bruce

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm
Who is online

Users browsing this forum: No registered users and 1 guest