From b19c5d9433b2ee193e2727a91ff657faf9cfa1cf Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 15 Aug 2020 10:12:14 -0400 Subject: formatting --- src/time/gmtime.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/time/gmtime.c b/src/time/gmtime.c index 6e59612e..637673be 100644 --- a/src/time/gmtime.c +++ b/src/time/gmtime.c @@ -26,9 +26,12 @@ struct tm * gmtime(const time_t * timer) tm.tm_yday = (int)(seconds / SEC_PER_DAY); seconds = seconds % SEC_PER_DAY; + tm.tm_hour = (int)(seconds / SEC_PER_HR); seconds = seconds % SEC_PER_HR; + tm.tm_min = (int)(seconds / SEC_PER_MIN); + tm.tm_sec = (int)(seconds % SEC_PER_MIN); days = tm.tm_yday; -- cgit v1.2.1