Bugzilla bug 221385: we need to set tm_zone and tm_gmtoff on FreeBSD, too.
The patch is contributed by Tai-hwa Liang <fk9cs702@sneakemail.com>. r=wtc. git-svn-id: svn://10.0.0.236/trunk@147915 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1666,7 +1666,7 @@ PR_FormatTime(char *buf, int buflen, const char *fmt, const PRExplodedTime *tm)
|
||||
*/
|
||||
|
||||
#if defined(SUNOS4) || (__GLIBC__ >= 2) || defined(XP_BEOS) \
|
||||
|| defined(NETBSD) || defined(OPENBSD)
|
||||
|| defined(NETBSD) || defined(OPENBSD) || defined(FREEBSD)
|
||||
a.tm_zone = NULL;
|
||||
a.tm_gmtoff = tm->tm_params.tp_gmt_offset + tm->tm_params.tp_dst_offset;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user