Mercurial > hg > octave-lyh
diff liboctave/oct-time.cc @ 7270:20b3ac39ee40
[project @ 2007-12-10 06:26:20 by jwe]
author | jwe |
---|---|
date | Mon, 10 Dec 2007 06:26:20 +0000 |
parents | 2eb392d058bb |
children | 8433bb7865bd |
line wrap: on
line diff
--- a/liboctave/oct-time.cc +++ b/liboctave/oct-time.cc @@ -304,7 +304,8 @@ tm_isdst = t->tm_isdst; #if defined (HAVE_STRUCT_TM_TM_ZONE) - tm_zone = t->tm_zone; + if (t->tm_zone) + tm_zone = t->tm_zone; #elif defined (HAVE_TZNAME) if (t->tm_isdst == 0 || t->tm_isdst == 1) tm_zone = tzname[t->tm_isdst];