diff options
| -rw-r--r-- | src/time/gmtime.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |
