<chrono>: clock_cast throws an exception under windows7 sp1
Open
Nobody has claimed this yet.
chrono
enhancement
- Dominant language
- C++
- Stars
- 11.2k
- Forks
- 1.7k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 22
Description
code:
try {
auto timestamp = std::chrono::clock_cast<std::chrono::system_clock>(std::filesystem::last_write_time(entity));
} catch (const std::exception& e) {
// Caught exception
}
debug:
__std_tzdb_get_time_zones failed because the error code is _Win_error
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the provided clock_cast reproducer on Windows 7 SP1 and investigate the __std_tzdb_get_time_zones failure reported in the debug output. Compare the behavior with a supported Windows environment; done means the same filesystem timestamp conversion no longer throws on Windows 7 SP1.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100