2001-12-03
2001-12-03 15:46:52 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
9a50e4fd7799a5f49efaf670f747940590a65353
(7 lines)
(+4/-3)
[
Show
| Annotate
]
Branch: 0.5
Fix the sign for tm_gmtoff. Fixes [bug 2584 (#2584)] some more.
Rev: src/builtin_functions.c:1.65
5:
\*/
/**/
#include "global.h"
- RCSID("$Id: builtin_functions.c,v 1.64 2001/12/03 13:29:10 grubba Exp $");
+ RCSID("$Id: builtin_functions.c,v 1.65 2001/12/03 15:46:52 grubba Exp $");
#include "interpret.h"
#include "svalue.h"
#include "pike_macros.h"
1399: Inside #if defined(HAVE_LOCALTIME) and #if defined(STRUCT_TM_HAS_GMTOFF)
#else
#ifdef STRUCT_TM_HAS_GMTOFF
push_string(make_shared_string("timezone"));
- push_int(tm->tm_gmtoff);
+ push_int(-tm->tm_gmtoff);
f_aggregate_mapping(20);
#else
f_aggregate_mapping(18);
1452: Inside #if defined(HAVE_MKTIME)
date.tm_isdst=isdst;
#if STRUCT_TM_HAS_GMTOFF
- date.tm_gmtoff=tz;
+ date.tm_gmtoff=-tz;
retval=mktime(&date);
#else
#ifdef HAVE_EXTERNAL_TIMEZONE