Skip to content
  • Tim-Philipp Müller's avatar
    datetime: fix compare function · 5a6be220
    Tim-Philipp Müller authored
    Take into account that not all fields might be valid (though they
    are valid in the GDateTime structure). But we should just return
    unordered if the set fields don't match. Also, don't check
    microseconds when comparing datetimes, since we don't serialise
    those by default if they're available. This ensures date times are
    still regarded as equal after serialising+deserialising.
    5a6be220