diff options
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1256,6 +1256,9 @@ time_to_s(time) time_t off; char buf2[32]; char sign = '+'; +#if !defined(HAVE_STRUCT_TM_TM_GMTOFF) + VALUE tmp; +#endif GetTimeval(time, tobj); if (tobj->tm_got == 0) { @@ -1264,7 +1267,7 @@ time_to_s(time) #if defined(HAVE_STRUCT_TM_TM_GMTOFF) off = tobj->tm.tm_gmtoff; #else - VALUE tmp = time_utc_offset(time); + tmp = time_utc_offset(time); off = NUM2INT(tmp); #endif if (off < 0) { |