2010-11-06, 04:27:11
Didn't think the code page would have an impact on how dates are displayed. My testing is limited to the Windows version of PHP, although that shouldn't make a difference. When I use setlocale, the dates show in the correct language, although since I only know English, testing is more difficult (could resort to an online translation service perhaps).
Would there be a way to force the new events.xml file to be created as UTF-8, as maybe that could be one of the problems.
I've use strtotime as a bit of a hack to get just the date portion without the time and the timezone offset (since it would otherwise fail on days when daylight savings comes into effect). A better way of doing that is needed, but want to do it in a generic way (as I wish to use the calendar class outside of GetSimple as well)
I find dates a bit of a pain to work with, and have more experience in Microsoft.NET C#, where culture formatting is easier (through web.config and the CultureInfo class) and the locale doesn't depend on the OS (though that's only because it is limited to Windows, unless Mono is used).
Would there be a way to force the new events.xml file to be created as UTF-8, as maybe that could be one of the problems.
I've use strtotime as a bit of a hack to get just the date portion without the time and the timezone offset (since it would otherwise fail on days when daylight savings comes into effect). A better way of doing that is needed, but want to do it in a generic way (as I wish to use the calendar class outside of GetSimple as well)
I find dates a bit of a pain to work with, and have more experience in Microsoft.NET C#, where culture formatting is easier (through web.config and the CultureInfo class) and the locale doesn't depend on the OS (though that's only because it is limited to Windows, unless Mono is used).
-- Sam