diff options
author | rocky <rocky@gnu.org> | 2009-12-24 03:52:50 +0100 |
---|---|---|
committer | rocky <rocky@gnu.org> | 2009-12-24 03:52:50 +0100 |
commit | d62c7320828d3d217229a54fa5098d729a35e226 (patch) | |
tree | eb0564d8a2ce0ac85a99a950eb135c281007f7da /lib/iso9660 | |
parent | 16c22fa5506897d1db63e628f2ba0a1320cf0d83 (diff) |
Start Solaris driver test. Driver MMC sets cdio return codes better.
Diffstat (limited to 'lib/iso9660')
-rw-r--r-- | lib/iso9660/iso9660.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/iso9660/iso9660.c b/lib/iso9660/iso9660.c index a365f7bd..3dbbd0c2 100644 --- a/lib/iso9660/iso9660.c +++ b/lib/iso9660/iso9660.c @@ -81,7 +81,7 @@ timegm(struct tm *tm) char *tz; tz = getenv("TZ"); - setenv("TZ", "UTC", 1); + setenv("TZ", "", 1); tzset(); ret = mktime(tm); if (tz) @@ -344,7 +344,7 @@ iso9660_set_dtime (const struct tm *p_tm, /*out*/ iso9660_dtime_t *p_idr_date) /* Convert seconds to minutes */ timezone = p_tm->tm_gmtoff / 60; #else - timezone = (p_tm->tm_isdst > 0) ? 0 : -60; + timezone = (p_tm->tm_isdst > 0) ? -60 : 0; #endif iso9660_set_dtime_with_timezone (p_tm, timezone, p_idr_date); } @@ -397,7 +397,7 @@ iso9660_set_ltime (const struct tm *p_tm, /*out*/ iso9660_ltime_t *pvd_date) /* Set time zone in 15-minute interval encoding. */ timezone = p_tm->tm_gmtoff / 60; #else - timezone = (p_tm->tm_isdst > 0) ? 0 : -60; + timezone = (p_tm->tm_isdst > 0) ? -60 : 0; #endif iso9660_set_ltime_with_timezone (p_tm, timezone, pvd_date); } |