Only set tm_gmtoff and tm_zone fields if __USE_BSD is defined
2001-09-28 Bradford Hovinen <hovinen@ximian.com> * config-log.c (parse_line): Only set tm_gmtoff and tm_zone fields if __USE_BSD is defined * util.c (parse_date): Ditto
This commit is contained in:
parent
c01fe3b0ac
commit
091dc3447c
3 changed files with 9 additions and 0 deletions
|
@ -94,8 +94,10 @@ parse_date (char *str)
|
|||
if (extract_number (&str, &value, 2))
|
||||
date->tm_sec = value;
|
||||
|
||||
#ifdef __USE_BSD
|
||||
date->tm_zone = "GMT";
|
||||
date->tm_gmtoff = 0;
|
||||
#endif
|
||||
|
||||
return date;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue