Added a comment

This commit is contained in:
http://joeyh.name/ 2014-06-11 23:02:28 +00:00 committed by admin
parent 2cc8a53815
commit 4b525889f1

View file

@ -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>
"""]]