mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 11:56:06 +08:00
Use wxDateTime::Now() to initialze current date instead of default constructor (avoid runtime errors)
This commit is contained in:
parent
ca0e39d7e7
commit
2bb1c1ab39
@ -21,7 +21,7 @@ namespace Slic3r { namespace GUI {
|
|||||||
|
|
||||||
|
|
||||||
// Setup for an Easter Egg with the canvas text.
|
// 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 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()};
|
const bool today_is_special = {today_date.GetDay() == special_date.GetDay() && today_date.GetMonth() == special_date.GetMonth()};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user