sub { GT::Date::set_date_format("%dddd% %dd% %mmmm%, %yyyy%, %HH%:%MM%"); my $date = GT::Date::date_get(); GT::Date::set_date_format("%yyyy%-%mm%-%dd%"); # set back to yyyy-mm-dd format, otherwise can cause other problems return $date; }
I change it in the set but it now change in the global. I change in the global the function set_date_format to date_set_format as the first give en error, can it be the cause?
I change the data language in the Setup > Date but it not help.
In the global that you submit there was an error with the GT::Date::set_date_format("%dddd% %dd% %mmmm%, %yyyy%, %HH%:%MM%"); so I change is to GT::Date::date_set_format("%ddd% %dd% %mmmm%, %yyyy%, %HH%:%MM%");
Do you think this is the reason why I get the date in English?
Ah actually, I think it may be due to a bug in GT::Date, where its actually hard-coded into the .pm file. Open up /admin/GT/Date.pm, and search for "January" to see if you can find it in there (afraid I'm a bit busy atm to check myself ;))