time_t values *are* in UTC by definition, so the is_utc argument is
2000-12-13 Federico Mena Quintero <federico@helixcode.com> * src/libical/icaltime.c (icaltime_from_timet): time_t values *are* in UTC by definition, so the is_utc argument is useless. Removed the conversion to UTC and made the icaltimetype.is_utc be TRUE always. This breaks libical's owne internal use of this function, but since we do not use any of the functions that use it that way, we can ignore this. This is basically a temporary measure until libical does the right thing. svn path=/trunk/; revision=6994
This commit is contained in:
committed by
Federico Mena Quintero
parent
8bee19374d
commit
db80f3f3ab
@ -1,3 +1,13 @@
|
||||
2000-12-13 Federico Mena Quintero <federico@helixcode.com>
|
||||
|
||||
* src/libical/icaltime.c (icaltime_from_timet): time_t values
|
||||
*are* in UTC by definition, so the is_utc argument is useless.
|
||||
Removed the conversion to UTC and made the icaltimetype.is_utc be
|
||||
TRUE always. This breaks libical's owne internal use of this
|
||||
function, but since we do not use any of the functions that use it
|
||||
that way, we can ignore this. This is basically a temporary
|
||||
measure until libical does the right thing.
|
||||
|
||||
2000-12-12 Eric Busboom <eric@softwarestudio.org>
|
||||
|
||||
* icalparser.c Addedd support for x-parameters.
|
||||
|
||||
@ -39,9 +39,11 @@ icaltime_from_timet(time_t tm, int is_date, int is_utc)
|
||||
struct icaltimetype tt;
|
||||
struct tm t;
|
||||
|
||||
#if 0 /* This is incorrect; a time_t *is* in UTC by definition. So we just ignore the flag. */
|
||||
if(is_utc == 0){
|
||||
tm += icaltime_local_utc_offset();
|
||||
}
|
||||
#endif
|
||||
|
||||
t = *(localtime(&tm));
|
||||
|
||||
@ -52,7 +54,10 @@ icaltime_from_timet(time_t tm, int is_date, int is_utc)
|
||||
tt.month = t.tm_mon + 1;
|
||||
tt.year = t.tm_year+ 1900;
|
||||
|
||||
#if 0
|
||||
tt.is_utc = is_utc;
|
||||
#endif
|
||||
tt.is_utc = 1;
|
||||
tt.is_date = is_date;
|
||||
|
||||
return tt;
|
||||
|
||||
Reference in New Issue
Block a user