Fix GLib assert on windows when entering a date in dst