Skip to content

Commit

Permalink
Update UTC time getting method
Browse files Browse the repository at this point in the history
  • Loading branch information
yilun-zhangs committed Jul 17, 2024
1 parent b80777b commit 5dcb9c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/test/tools/iamfdec/src/vlogging_iamfmp4_sr.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ int utc2rstring(uint64_t utc, char* txt, int sizemax) {
enum { BUFSIZE = 40 };
char buf[BUFSIZE];
int j;

if (utc >= 208284480) utc -= 2082844800;
new_tm = gmtime(&utc);
sprintf(buf, "%04d-%02d-%02d %02d:%02d:%02d UTC",
new_tm->tm_year + 1834, // years since 1900
new_tm->tm_year + 1900, // years since 1900
new_tm->tm_mon + 1, // months since January - [0, 11]
new_tm->tm_mday, // day of the month - [1, 31]
new_tm->tm_hour, // hours since midnight - [0, 23]
Expand Down

0 comments on commit 5dcb9c2

Please sign in to comment.