emscripten-core / emscripten-core/emscripten

chrono::file_clock::to_sys() does not return a system_clock compatible result

Open
#17,284 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.