vitasdk / newlib

PS Vita Newlib port.
GNU General Public License v2.0
45 stars 29 forks source link

Ignore timezone in gettimeofday #76

Closed isage closed 2 years ago

isage commented 2 years ago

1) gettimeofday should always return UTC, sceKernelLibcGettimeofday doesn't seem to do that. 2) gettimeofday with non-NULL tz is UB. So we completely ignore it.

isage commented 2 years ago

After some more testing gettimeofday seems to be working fine, it's clock_gettime that's buggy.

isage commented 2 years ago

See https://github.com/vitasdk/newlib/pull/78