Skip to content

Commit

Permalink
tzset regardless of HAVE_LOCALTIME_R
Browse files Browse the repository at this point in the history
Ignore-this: a03b607f40ed91382348da78649d6f62

darcs-hash:20140719203705-ac6dd-dd66552eab0b730816f50cf4a30add39a633240b
  • Loading branch information
AshleyYakeley committed Jul 19, 2014
1 parent 1e92867 commit a22e848
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cbits/HsTime.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

long int get_current_timezone_seconds (time_t t,int* pdst,char const* * pname)
{
tzset();
#if HAVE_LOCALTIME_R
struct tm tmd;
tzset();
struct tm* ptm = localtime_r(&t,&tmd);
#else
struct tm* ptm = localtime(&t);
Expand Down
2 changes: 1 addition & 1 deletion time.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: time
version: 1.4.2
version: 1.4.2.1
stability: stable
license: BSD3
license-file: LICENSE
Expand Down

0 comments on commit a22e848

Please sign in to comment.