FreeBSD Bugzilla – Attachment 252912 Details for
Bug 280922
Change 46c599340f187db577b9212ab18022f3c7380c68 fixes one case (localtime / gmtime -> strftime('%s'), but breaks another
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
the patch
strftime_2s.diff (text/plain), 465 bytes, created by
Vladislav Shabanov
on 2024-08-19 11:29:43 UTC
(
hide
)
Description:
the patch
Filename:
MIME Type:
Creator:
Vladislav Shabanov
Created:
2024-08-19 11:29:43 UTC
Size:
465 bytes
patch
obsolete
>--- ./lib/libc/stdtime/strftime.c.orig 2024-08-18 16:57:22.031016000 +0300 >+++ ./lib/libc/stdtime/strftime.c 2024-08-18 17:00:22.484051000 +0300 >@@ -302,7 +302,11 @@ > time_t mkt; > > tm = *t; >- mkt = timeoff(&tm, t->tm_gmtoff); >+ if (t->tm_gmtoff || t->tm_zone) { >+ mkt = timeoff(&tm, t->tm_gmtoff); >+ } else { >+ mkt = mktime(&tm); >+ } > if (TYPE_SIGNED(time_t)) > (void) sprintf_l(buf, loc, "%ld", > (long) mkt);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 280922
:
252911
| 252912