2010-10-06, 12:48:35
JP Wrote:yojoe Wrote:ps. try to use strftime with your own date display setting.I do not understand...
P.S. maybe the error is in the date_default_timezone_set?
K, I've managed to get it working after lotsa time :\
Set your timezone in GM options (admin panel), and add your timezone to .htaccess (to be sure)
Code:
SetEnv TZ Europe/Prague
Next thing is to change default timezone in admin/inc/common.php line 74
Now the whole trick. I've mentioned about strftime function, as it's used to format the date to specific locale settings. GS uses strtotime function, which is capable of showing date only in US date format.
Locate admin/inc/theme_functions.php file, and find function get_page_date
Inside change (delete or comment)
Code:
echo date($i, strtotime($date));
Code:
echo iconv("", "UTF-8",strftime('%A, %e.%B. %Y'));
That should do it. I prepared the date as you have shown on img included in 1st post.
You may also change first line of this function to
Code:
function get_page_date($i = "l, j.m.Y - H:i")
Let me know if it worked.
I'll try to report this "bug".
Addons: blue business theme, Online Visitors, Notepad