bad date format in entries.tpl

Found a bug? Tell us!!
Post Reply
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

bad date format in entries.tpl

Post by oxygenws »

in entries.tpl file, the following line:

Code: Select all

<h3 class="serendipity_date">{$dategroup.date|@formatTime:DATE_FORMAT_ENTRY}</h3>
returns some bad codes and characters, in some bad encoding (not utf-8, it returns in windows-1256 format!!!!) in Persian language. (OS = windows)

i think it is Smarty fault!! am i right?!

thanks, omid
My Blog, powered by s9y is http://oxygenws.com/blog/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: bad date format in entries.tpl

Post by garvinhicking »

Hm, that function should always return the strings defined in the OS Locale system. If your lkanguage include uses a Locale which uses Windows-1256, but you define the charset as UTF8, it will not work.

You'll need to use a locale like 'fa@UTF-8' or so, that depends on the OS. I sadly don't know anything about windows locales.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

yes, i test it in linux, linux returns month names in english format.
but windows, returns gregorian month names in Persian!! (not Iranian calendar!) and uses windows-1256! and i think i cannot change the output encoding!!

Thanks, i think i must call Microsoft!!! :roll:
My Blog, powered by s9y is http://oxygenws.com/blog/
Post Reply