diff options
author | http://joeyh.name/ <http://joeyh.name/@web> | 2014-06-11 23:02:28 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2014-06-11 23:02:28 +0000 |
commit | a041438fc32c6bb363c004552e1992fe90fc349d (patch) | |
tree | 04be733f958cf0cad3c112e542c435d452d1055b /doc/bugs/Windows_file_timestamp_timezone_madness | |
parent | 145ccb189ff934ce49a3e771440792f8cade2787 (diff) |
Added a comment
Diffstat (limited to 'doc/bugs/Windows_file_timestamp_timezone_madness')
-rw-r--r-- | doc/bugs/Windows_file_timestamp_timezone_madness/comment_5_0739426403f5bf9954acbc86ca0d11ea._comment | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/bugs/Windows_file_timestamp_timezone_madness/comment_5_0739426403f5bf9954acbc86ca0d11ea._comment b/doc/bugs/Windows_file_timestamp_timezone_madness/comment_5_0739426403f5bf9954acbc86ca0d11ea._comment new file mode 100644 index 000000000..ac1f090f5 --- /dev/null +++ b/doc/bugs/Windows_file_timestamp_timezone_madness/comment_5_0739426403f5bf9954acbc86ca0d11ea._comment @@ -0,0 +1,23 @@ +[[!comment format=mdwn + username="http://joeyh.name/" + ip="108.236.230.124" + subject="comment 5" + date="2014-06-11T23:02:28Z" + content=""" +I've developed a fix for the time library. This patch has been sent to the author, hopefully it will get applied and then I can use getCurrentTImeZone. Note that git-annex would need to unset TZ first, which might be hard on windows. + +<pre> +diff --git a/cbits/HsTime.c b/cbits/HsTime.c +index cfafb27..86ca92a 100644 +--- a/cbits/HsTime.c ++++ b/cbits/HsTime.c +@@ -8,6 +8,7 @@ long int get_current_timezone_seconds (time_t t,int* pdst,char const* * pname) + tzset(); + struct tm* ptm = localtime_r(&t,&tmd); + #else ++ tzset(); + struct tm* ptm = localtime(&t); + #endif + if (ptm) +</pre> +"""]] |