Files
mu4e/lib
Matthew Smith 075394b35f lib: use time_t_max for empty datetime
In Mu::parse_date_time, when provided with an empty string, return
time_t_max instead of G_MAXINT64. For systems with a 64-bit time_t, there
is no difference. With a 32-bit time_t it caused a test to fail:

    not ok /utils/date-basic - ERROR:../mu-1.12.4/lib/utils/tests/test-utils.cc:92
    void test_date_basic(): assertion failed
    (parse_date_time(std::get<0>(test), std::get<1>(test)).value_or(-1)
      == std::get<2>(test)): (18446744073709551615 == 2147483647)

This edge case probably only affected the test, as when other parts of
the application call parse_date_time (e.g. mu-server.cc and
mu-query-processor.cc), they check if the input string is empty first.
2024-08-26 14:46:54 +00:00
..
2024-06-03 21:01:11 +03:00
2023-09-23 09:27:46 +03:00
2024-06-01 17:30:16 +03:00
2023-09-16 11:12:16 +03:00
2023-09-24 17:29:56 +03:00
2024-05-08 00:06:28 +03:00
2024-05-08 00:06:28 +03:00
2023-09-10 08:55:25 +03:00
2023-07-23 21:04:26 +03:00
2024-08-21 06:19:35 +03:00
2024-06-03 21:01:11 +03:00
2024-06-03 21:01:11 +03:00
2024-06-03 21:01:11 +03:00