aboutsummaryrefslogtreecommitdiff
path: root/src/date.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-04-20 10:47:49 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-04-20 10:47:49 +0300
commit8a98b46ef2b5673fcdf0a9a466857a5de044dfc5 (patch)
treeae548496da015f3319760479e09cfe5a0b1eba5d /src/date.c
parent1cc7990ef7d5483d0434dda412f2d88e0b17df27 (diff)
downloadposthaste-8a98b46ef2b5673fcdf0a9a466857a5de044dfc5.tar.gz
posthaste-8a98b46ef2b5673fcdf0a9a466857a5de044dfc5.zip
add lightening jit
Diffstat (limited to 'src/date.c')
-rw-r--r--src/date.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/date.c b/src/date.c
index 11f35c4..f81b69f 100644
--- a/src/date.c
+++ b/src/date.c
@@ -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;
}