Hello community, here is the log from the commit of package ghc-unix-time for openSUSE:Factory checked in at 2019-06-30 10:21:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-unix-time (Old) and /work/SRC/openSUSE:Factory/.ghc-unix-time.new.4615 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-unix-time" Sun Jun 30 10:21:48 2019 rev:13 rq:712507 version:0.4.7 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-unix-time/ghc-unix-time.changes 2019-06-19 21:13:07.514784761 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-unix-time.new.4615/ghc-unix-time.changes 2019-06-30 10:21:49.219649931 +0200 @@ -1,0 +2,6 @@ +Wed Jun 19 11:46:01 UTC 2019 - [email protected] + +- Update unix-time to version 0.4.7. + Upstream does not provide a change log file. + +------------------------------------------------------------------- Old: ---- unix-time-0.4.6.tar.gz New: ---- unix-time-0.4.7.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-unix-time.spec ++++++ --- /var/tmp/diff_new_pack.Wmsf97/_old 2019-06-30 10:21:50.735652286 +0200 +++ /var/tmp/diff_new_pack.Wmsf97/_new 2019-06-30 10:21:50.735652286 +0200 @@ -19,7 +19,7 @@ %global pkg_name unix-time %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.4.6 +Version: 0.4.7 Release: 0 Summary: Unix time parser/formatter and utilities License: BSD-3-Clause ++++++ unix-time-0.4.6.tar.gz -> unix-time-0.4.7.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/unix-time-0.4.6/Data/UnixTime/Conv.hs new/unix-time-0.4.7/Data/UnixTime/Conv.hs --- old/unix-time-0.4.6/Data/UnixTime/Conv.hs 2019-06-13 05:15:06.000000000 +0200 +++ new/unix-time-0.4.7/Data/UnixTime/Conv.hs 2019-06-18 09:45:05.000000000 +0200 @@ -71,6 +71,7 @@ -- This is a wrapper for strftime_l(). -- 'utMicroSeconds' is ignored. -- The result depends on the TZ environment variable. +-- formatUnixTime :: Format -> UnixTime -> IO ByteString formatUnixTime fmt t = diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/unix-time-0.4.6/cbits/conv.c new/unix-time-0.4.7/cbits/conv.c --- old/unix-time-0.4.6/cbits/conv.c 2019-06-13 05:15:06.000000000 +0200 +++ new/unix-time-0.4.7/cbits/conv.c 2019-06-18 09:45:05.000000000 +0200 @@ -50,7 +50,7 @@ char *tz; tz = getenv("TZ"); #if defined(_WIN32) - _patch_setenv("TZ", "", 1); + _patch_setenv("TZ", "UTC", 1); #else setenv("TZ", "", 1); #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/unix-time-0.4.6/cbits/strftime.c new/unix-time-0.4.7/cbits/strftime.c --- old/unix-time-0.4.6/cbits/strftime.c 2019-06-13 05:15:06.000000000 +0200 +++ new/unix-time-0.4.7/cbits/strftime.c 2019-06-18 09:45:05.000000000 +0200 @@ -522,7 +522,8 @@ #ifdef ALTZONE diff = -altzone; #else /* !defined ALTZONE */ - continue; + // Fix the daylight saving time, see #54. + diff = -(_timezone - 3600 * t->tm_isdst); #endif /* !defined ALTZONE */ #endif /* !defined TM_GMTOFF */ if (diff < 0) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/unix-time-0.4.6/cbits/win_patch.c new/unix-time-0.4.7/cbits/win_patch.c --- old/unix-time-0.4.6/cbits/win_patch.c 2019-06-13 05:15:06.000000000 +0200 +++ new/unix-time-0.4.7/cbits/win_patch.c 2019-06-18 09:45:05.000000000 +0200 @@ -100,18 +100,26 @@ }; -int _patch_setenv(const char *var, const char *val, int ovr) { - BOOL b = SetEnvironmentVariableA(var, val); - if (b) { - return 0; - } else { - return 1; +int _patch_setenv(const char *var, const char *val, int _ovr) { + if (val == NULL) { + return _patch_unsetenv(var); } + int varlen = strlen(var); + int vallen = strlen(val); + int len = varlen + vallen + 2; + char *sname = (char *)malloc(len); + strcpy(sname, var); + sname[varlen] = '='; + strcpy(sname + varlen + 1, val); + sname[varlen + vallen + 1] = '\0'; + int r = _putenv(sname); + free(sname); + return r; } int _patch_unsetenv(const char *name) { - int len = strlen(name); - char *sname = (char *)malloc(len + 2); + int len = strlen(name) + 2; + char *sname = (char *)malloc(len); strcpy(sname, name); sname[len] = '='; sname[len + 1] = '\0'; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/unix-time-0.4.6/unix-time.cabal new/unix-time-0.4.7/unix-time.cabal --- old/unix-time-0.4.6/unix-time.cabal 2019-06-13 05:15:06.000000000 +0200 +++ new/unix-time-0.4.7/unix-time.cabal 2019-06-18 09:45:05.000000000 +0200 @@ -1,5 +1,5 @@ Name: unix-time -Version: 0.4.6 +Version: 0.4.7 Author: Kazu Yamamoto <[email protected]> Maintainer: Kazu Yamamoto <[email protected]> License: BSD3
