Merge pull request #533 from tfussell/time-struct-warning

Fix time struct warning on linux
This commit is contained in:
Thomas Fussell 2021-01-03 10:31:50 -05:00 committed by GitHub
commit 98e80133ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,7 +126,7 @@ date date::today()
int date::weekday() const
{
#ifdef __APPLE__
#ifndef _MSC_VER
std::tm tm{0, 0, 0, day, month - 1, year - 1900, 0, 0, 0, 0, nullptr};
#else
std::tm tm{0, 0, 0, day, month - 1, year - 1900, 0, 0, 0};