Menu

#48 improvement of timezone implementation

4.0
open
i18n/l10n (13)
9
2012-03-07
2012-03-07
No

In respect of timezone, there is a difference between PHP5 version and operating systems and the process environment.

[1] strftime() generates E_NOTICE/E_STRICT/E_WARNING if the process doesn't have its own timezone settings.
http://jp.php.net/manual/en/function.strftime.php

SVN1106 XAMPP上でのテスト結果
http://japan.nucleuscms.org/bb/viewtopic.php?p=26632#p26632

[2] Under old Windows, if the format includes multi-byte strings, the parse is stopped within the string.

Re: Nucleus CMS 4.0の開発に関して
http://japan.nucleuscms.org/bb/viewtopic.php?p=27004#p27004

FYI:
setlocale, _wsetlocale
http://msdn.microsoft.com/en-us/library/x99tb11d.aspx

To keep the consistency of datetime, the expression of timestamp should be based on UTC and its time differences. Then we don't mind the server environments.

Discussion

  • Anonymous

    Anonymous - 2012-03-07

    For issue [2], I wrote i18n::strftime(). This method splits the format with some tokens and just post the token with % into parser. Then multi-byte strings are not passed into parser.

    http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1530

     

Log in to post a comment.