Skip to content

Commit 5dcb9c2

Browse files
committed
Update UTC time getting method
1 parent b80777b commit 5dcb9c2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

code/test/tools/iamfdec/src/vlogging_iamfmp4_sr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ int utc2rstring(uint64_t utc, char* txt, int sizemax) {
9898
enum { BUFSIZE = 40 };
9999
char buf[BUFSIZE];
100100
int j;
101-
101+
if (utc >= 208284480) utc -= 2082844800;
102102
new_tm = gmtime(&utc);
103103
sprintf(buf, "%04d-%02d-%02d %02d:%02d:%02d UTC",
104-
new_tm->tm_year + 1834, // years since 1900
104+
new_tm->tm_year + 1900, // years since 1900
105105
new_tm->tm_mon + 1, // months since January - [0, 11]
106106
new_tm->tm_mday, // day of the month - [1, 31]
107107
new_tm->tm_hour, // hours since midnight - [0, 23]

0 commit comments

Comments
 (0)