head	1.2;
access;
symbols
	RELEASE_7_0_0:1.1
	RELEASE_6_3_0:1.1
	PRE_XORG_7:1.1
	RELEASE_4_EOL:1.1
	RELEASE_6_2_0:1.1
	RELEASE_6_1_0:1.1
	RELEASE_5_5_0:1.1
	RELEASE_6_0_0:1.1
	RELEASE_5_4_0:1.1
	RELEASE_4_11_0:1.1
	RELEASE_5_3_0:1.1
	RELEASE_4_10_0:1.1;
locks; strict;
comment	@# @;


1.2
date	2007.12.14.18.45.58;	author miwi;	state dead;
branches;
next	1.1;

1.1
date	2003.12.21.14.48.05;	author krion;	state Exp;
branches;
next	;


desc
@@


1.2
log
@- Update to 3.0c

PR:		118600
Submitted by:	KATO Tsuguru <tkato432@@yahoo.com>
@
text
@--- runtime/Clib/cdate.c.orig
+++ runtime/Clib/cdate.c
@@@@ -22,7 +22,7 @@@@
    date = GC_MALLOC_ATOMIC( BGL_DATE_SIZE );
    date->date_t.header = MAKE_HEADER( DATE_TYPE, 0 );
 
-   date->date_t.timezone = timezone;
+   date->date_t.timezone = tm->tm_gmtoff;
       
    date->date_t.sec = tm->tm_sec;
    date->date_t.min = tm->tm_min;
@@@@ -46,7 +46,7 @@@@
 BGL_RUNTIME_DEF
 obj_t
 bgl_seconds_to_date( long sec ) {
-   return tm_to_date( localtime( (time_t *)&sec ), &sec );
+   return tm_to_date( localtime( (time_t *)&sec ), (time_t *)&sec );
 }
 
 /*---------------------------------------------------------------------*/
@@@@ -115,7 +115,7 @@@@
    struct tm *t;
    char *s;
 
-   t = gmtime( &((time_t)sec) );
+   t = gmtime( (time_t *)&sec );
    s = asctime( t );
 
    return string_to_bstring_len( s, (int)strlen( s ) - 1 );

@


1.1
log
@- Update to 2.6b

PR:		60387
Submitted by:	maintainer
@
text
@@

