emscripten-core / emscripten-core/emscripten
chrono::file_clock::to_sys() does not return a system_clock compatible result
Open
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
The following code fails to compile in emscripten 3.1.14.
```
auto filetime = filesystem::last_write_time(path);
const auto systemtime = chrono::file_clock::to_sys(filetime);
time_t time = chrono::system_clock::to_time_t(systemtime); // no viable conversion compiler error
```
Contributor guide
Assessment
This issue has not been assessed yet.