[SOLVED] modified_date & created_date character issue

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
manuel
Power Poster
Power Poster
Posts: 353
Joined: Fri Nov 30, 2007 9:15 am

[SOLVED] modified_date & created_date character issue

Post by manuel »

When using the {modified_date} & {created_date} tag in the content there's an issue with character encoding.
This doesn't occur when using the {current_date} tag.

In the example below, the locale is set to french:
{modified_date format="%A %d %B %Y - %T %Z"} >> jeudi 03 février 2011 - 14:37:42 CET

The current_date does however return a correctly formatted date:
{current_date format="%A %d %B %Y - %T %Z"} >> jeudi 03 février 2011 - 14:43:07 CET

I've tried my best to get it in to UTF-8...

My attempts to fix this:
{modified_date format="%A %d %B %Y - %T %Z"|escape:'UTF8'}
{modified_date format="%A %d %B %Y - %T %Z"|escape:'UTF-8'}
{modified_date format="%A %d %B %Y - %T %Z"|escape:'UTF-8':'UTF8'}
and finally...
{capture assign="modified"}{modified_date format="%A %d %B %Y - %T %Z"}{/capture}
{$modified|escape:"UTF-8"}

The output remains the same... :-\ jeudi 03 février 2011 - 14:37:42 CET

Any suggestions?

ps: yes, default_encoding & admin_encoding are set to utf-8 ;)

Greetings,
Manuel
Last edited by manuel on Tue Apr 12, 2011 1:35 pm, edited 1 time in total.
User avatar
manuel
Power Poster
Power Poster
Posts: 353
Joined: Fri Nov 30, 2007 9:15 am

Re: modified_date & created_date character issue

Post by manuel »

Solved and posted a bug report http://dev.cmsmadesimple.org/bug/view/6386

Greetings,
Manuel
Post Reply

Return to “CMSMS Core”