X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=xt%2Fmsgtime_cmp.t;h=4ebf5b2cedb85a859b771873452de3d92f95fb2b;hp=b77e57a626958563a0f19e4b17b97bb8a7653113;hb=b6fc8916a05176ef006b07bba977b59cdf6a0bce;hpb=6ebcec3add4d6aeff6e3b3eb019a404528c079ec diff --git a/xt/msgtime_cmp.t b/xt/msgtime_cmp.t index b77e57a6..4ebf5b2c 100644 --- a/xt/msgtime_cmp.t +++ b/xt/msgtime_cmp.t @@ -82,6 +82,13 @@ sub str2date_zone ($) { # off is the time zone offset in seconds from GMT my ($ss,$mm,$hh,$day,$month,$year,$off) = Date::Parse::strptime($date); + + # new behavior which wasn't in the original old version: + if ('commit d857e7dc0d816b635a7ead09c3273f8c2d2434be') { + # "msgtime: assume +0000 if TZ missing when using Date::Parse" + $off //= '+0000'; + } + return undef unless(defined $off); # Compute the time zone from offset