X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=ext%2FTime-Piece%2FPiece.pm;h=302114f3929e6a946fdc814701fb727bda186358;hb=8565c31a574ba4f7dc8cd69b66988949074e120d;hp=d49d72baad79de2965532dd0da53551557789412;hpb=d4d72fe625ac27cfd63f4ce3816d7b00fbf04ddf;p=p5sagit%2Fp5-mst-13.2.git diff --git a/ext/Time-Piece/Piece.pm b/ext/Time-Piece/Piece.pm index d49d72b..302114f 100644 --- a/ext/Time-Piece/Piece.pm +++ b/ext/Time-Piece/Piece.pm @@ -1,4 +1,4 @@ -# $Id: Piece.pm 76 2008-03-02 20:15:09Z matt $ +# $Id: Piece.pm 81 2009-05-09 02:31:43Z matt $ package Time::Piece; @@ -22,7 +22,7 @@ our %EXPORT_TAGS = ( ':override' => 'internal', ); -our $VERSION = '1.13_03'; +our $VERSION = '1.14_01'; bootstrap Time::Piece $VERSION; @@ -820,6 +820,24 @@ including the ':override' tag in the import list: use Time::Piece ':override'; +=head1 CAVEATS + +=head2 Setting $ENV{TZ} in Threads on Win32 + +Note that when using perl in the default build configuration on Win32 +(specifically, when perl is built with PERL_IMPLICIT_SYS), each perl +interpreter maintains its own copy of the environment and only the main +interpreter will update the process environment seen by strftime. + +Therefore, if you make changes to $ENV{TZ} from inside a thread other than +the main thread then those changes will not be seen by strftime if you +subsequently call that with the %Z formatting code. You must change $ENV{TZ} +in the main thread to have the desired effect in this case (and you must +also call _tzset() in the main thread to register the environment change). + +Furthermore, remember that this caveat also applies to fork(), which is +emulated by threads on Win32. + =head1 AUTHOR Matt Sergeant, matt@sergeant.org