[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] pnet ChangeLog support/time.c
From: |
Klaus Treichel |
Subject: |
[dotgnu-pnet-commits] pnet ChangeLog support/time.c |
Date: |
Thu, 02 Nov 2006 18:22:45 +0000 |
CVSROOT: /cvsroot/dotgnu-pnet
Module name: pnet
Changes by: Klaus Treichel <ktreichel> 06/11/02 18:22:40
Modified files:
. : ChangeLog
support : time.c
Log message:
2006-11-02 Roman I Khimov <address@hidden>
* support/time.c: Fix ILGetTimeZoneAdjust if tm_gmtoff is not
present in
the tm struct (Patch #5144, Klaus).
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnet/ChangeLog?cvsroot=dotgnu-pnet&r1=1.3383&r2=1.3384
http://cvs.savannah.gnu.org/viewcvs/pnet/support/time.c?cvsroot=dotgnu-pnet&r1=1.17&r2=1.18
Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/ChangeLog,v
retrieving revision 1.3383
retrieving revision 1.3384
diff -u -b -r1.3383 -r1.3384
--- ChangeLog 30 Oct 2006 21:56:22 -0000 1.3383
+++ ChangeLog 2 Nov 2006 18:22:40 -0000 1.3384
@@ -1,6 +1,11 @@
+2006-11-02 Roman I Khimov <address@hidden>
+
+ * support/time.c: Fix ILGetTimeZoneAdjust if tm_gmtoff is not present in
+ the tm struct (Patch #5144, Klaus).
+
2006-10-26 Russell Stuart <address@hidden>
- * lib_string.c: Make String.IndexOf("", ...) and
+ * engine/lib_string.c: Make String.IndexOf("", ...) and
String.LastIndexOf("", ...) always match, as they do in
Microsoft's implementation.
Index: support/time.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/support/time.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- support/time.c 3 Feb 2006 06:39:24 -0000 1.17
+++ support/time.c 2 Nov 2006 18:22:40 -0000 1.18
@@ -210,9 +210,8 @@
#if !defined(__palmos__)
static int initialized = 0;
static int isdst = 0;
-#ifdef HAVE_TM_GMTOFF
static long timezone = 0;
-#endif
+
if(!initialized)
{
#ifdef IL_WIN32_PLATFORM
@@ -229,11 +228,11 @@
timezone = temp.Bias * 60;
}
#else
+#ifdef HAVE_TM_GMTOFF
/* Call "localtime", which will set the global "timezone" for
us */
time_t temp = time(0);
struct tm *tms = localtime(&temp);
isdst = tms->tm_isdst;
-#ifdef HAVE_TM_GMTOFF
timezone = -(tms->tm_gmtoff);
#endif
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [dotgnu-pnet-commits] pnet ChangeLog support/time.c,
Klaus Treichel <=