Use wxDateTime::Now() to initialze current date instead of default constructor (avoid runtime errors)

This commit is contained in:
Joseph Lenox 2018-05-12 16:41:56 -05:00
parent ca0e39d7e7
commit 2bb1c1ab39

View File

@ -21,7 +21,7 @@ namespace Slic3r { namespace GUI {
// Setup for an Easter Egg with the canvas text.
const wxDateTime today_date {wxDateTime().GetDateOnly()};
const wxDateTime today_date {wxDateTime::Now()};
const wxDateTime special_date {13, wxDateTime::Month::Sep, 2006, 0, 0, 0, 0};
const bool today_is_special = {today_date.GetDay() == special_date.GetDay() && today_date.GetMonth() == special_date.GetMonth()};