mirror of
https://github.com/ToruNiina/toml11.git
synced 2024-11-26 06:10:06 +00:00
fix: revert misjudgement as a bug
Probably I'm too tired.
This reverts commit adcd75e017
.
This commit is contained in:
parent
fd980a8c5d
commit
53a185e7a9
@ -450,13 +450,13 @@ struct offset_datetime
|
||||
: date(ld.date), time(ld.time), offset(get_local_offset())
|
||||
{}
|
||||
explicit offset_datetime(const std::chrono::system_clock::time_point& tp)
|
||||
: offset_datetime(local_datetime(tp)), offset(get_local_offset())
|
||||
: offset_datetime(local_datetime(tp))
|
||||
{}
|
||||
explicit offset_datetime(const std::time_t& t)
|
||||
: offset_datetime(local_datetime(t)), offset(get_local_offset())
|
||||
: offset_datetime(local_datetime(t))
|
||||
{}
|
||||
explicit offset_datetime(const std::tm& t)
|
||||
: offset_datetime(local_datetime(t)), offset(get_local_offset())
|
||||
: offset_datetime(local_datetime(t))
|
||||
{}
|
||||
|
||||
operator std::chrono::system_clock::time_point() const
|
||||
|
Loading…
Reference in New Issue
Block a user