diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-04-20 10:47:49 +0300 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-04-20 10:47:49 +0300 |
commit | 8a98b46ef2b5673fcdf0a9a466857a5de044dfc5 (patch) | |
tree | ae548496da015f3319760479e09cfe5a0b1eba5d /src/date.c | |
parent | 1cc7990ef7d5483d0434dda412f2d88e0b17df27 (diff) | |
download | posthaste-8a98b46ef2b5673fcdf0a9a466857a5de044dfc5.tar.gz posthaste-8a98b46ef2b5673fcdf0a9a466857a5de044dfc5.zip |
add lightening jit
Diffstat (limited to 'src/date.c')
-rw-r--r-- | src/date.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -30,7 +30,8 @@ struct tm tm_from_date(ph_date_t date) unsigned day = 0; date_split(date, &year, &month, &day); - struct tm time = {.tm_year = year - 1900, .tm_mon = month - 1, .tm_mday = day}; + struct tm time = {.tm_year = year - 1900, .tm_mon = month - 1, + .tm_mday = day}; mktime(&time); return time; } |