ParseDateTime currently fails if there is a 'T' separator in front of time component. FormatISOCombined() uses this separator as the default, so wxDateTime can't parse its own formatted results by default. Example
wxDateTime dt; wxASSERT(dt.ParseDateTime("1979-10-31 13:37:09")); wxASSERT(dt.IsValid()); wxDateTime otherDt; // OK wxASSERT(otherDt.ParseDateTime(dt.FormatISOCombined(' '))); // Fails using the defaults (and, according to the help, the standard format) wxASSERT(otherDt.ParseDateTime(dt.FormatISOCombined()));
https://github.com/wxWidgets/wxWidgets/pull/22999
(1 file)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@Blake-Madden pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
A unit test for this should be added to tests/datetime/datetimetest.cpp.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@Blake-Madden pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Looks good, thanks! Will merge soon.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()