mirror of
https://github.com/stalwartlabs/mail-parser.git
synced 2026-11-29 08:01:21 +00:00
Fix: parse_date() does not handle UTC+12 and greater (fixes #148)
This commit is contained in:
@@ -433,7 +433,7 @@ impl<'x> MessageStream<'x> {
|
||||
hour: parts[3] as u8,
|
||||
minute: parts[4] as u8,
|
||||
second: parts[5] as u8,
|
||||
tz_hour: ((parts[6] / 100) % 12) as u8,
|
||||
tz_hour: ((parts[6] / 100) % 24) as u8,
|
||||
tz_minute: ((parts[6] % 100) % 60) as u8,
|
||||
tz_before_gmt: !is_plus,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user