Dates getting displayed as huge numbers on macos
bobbykjack opened this issue · 4 comments
bobbykjack commented
ggerganov commented
Based on this SO thread, you can try replacing the following line:
return std::chrono::duration_cast<std::chrono::seconds>(std::chrono::high_resolution_clock::now().time_since_epoch()).count(); // duh ..with
return std::chrono::duration_cast<std::chrono::seconds>(std::chrono::system_clock::now().time_since_epoch()).count(); // duh ..The hypothesis is that only system_clock is guaranteed to return Unix time.
If you get the chance to try it, please let me know. Thanks!
bobbykjack commented
ggerganov commented
Great! Feel free to make a PR
bobbykjack commented
Well, I don't have any access to other platforms, and I'm not really comfortable dealing with any portability issues on this one, so I'll leave it up to you if that's ok! Cheers.

