** If correcting for daylight savings time, we set the adjustment to
** the value of timezone - 3600 seconds.
*/
+#ifdef __CYGWIN__
+ gmadjust = -(is_dst ? _timezone - 3600 : _timezone);
+#else
gmadjust = -(is_dst ? timezone - 3600 : timezone);
+#endif
#endif
seconds += gmadjust;
}
} else {
ta = php_localtime_r(&the_time, &tmbuf);
#if !HAVE_TM_GMTOFF
+#ifdef __CYGWIN__
+ tzone = _timezone;
+#else
tzone = timezone;
+#endif
tname[0] = tzname[0];
#endif
}