1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- mktime() is supposed to convert the time specification, given as local

time, into the number of seconds since January 1st, 1970, relative to
  UTC. This didn't really work up until now since the time value returned
  was given as local time.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14810 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-01-25 11:21:00 +00:00
parent d1aaa84bcc
commit 003faf7a24
4 changed files with 22 additions and 7 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: time_localtime_r.c,v 1.2 2005-01-02 09:07:19 obarthel Exp $
* $Id: time_localtime_r.c,v 1.3 2005-01-25 11:21:00 obarthel Exp $
*
* :ts=4
*
@ -67,8 +67,8 @@ localtime_r(const time_t *t,struct tm * tm_ptr)
}
#endif /* CHECK_FOR_NULL_POINTERS */
/* The time parameter given represents local time and
* must be converted to UTC before we proceed.
/* The time parameter given represents UTC and
* must be converted to local time before we proceed.
*/
if(__default_locale != NULL)
gmt_offset = 60 * __default_locale->loc_GMTOffset;