#2177: Message copied from mbox to maildir has wrong mtime if DST -------------------------------------+-------------------------------------- Reporter: molotov...@… | Owner: mutt-dev Type: defect | Status: closed Priority: trivial | Milestone: Component: mutt | Version: Resolution: fixed | Keywords: -------------------------------------+-------------------------------------- Changes (by me):
* status: new => closed * resolution: => fixed Old description: > {{{ > When copying a message from an mbox to a maildir folder, the message > file's mtime is set to the date on the mbox's From line in the current > time zone. However, if the message's date is not in the same DST phase > as the current date, the mtime of the file will be off by one hour. > >How-To-Repeat: > In PST: > Find a message stored in an mbox which was received during DST (May - > Oct). Copy it to a maildir, and compare the date in the mbox From line > to the mtime of the message file in the mdir. > >Fix: > When parsing the From date, use the system TZ settings to get the time > zone offset on that date, rather than the offset on the current date. > }}} New description: {{{ When copying a message from an mbox to a maildir folder, the message file's mtime is set to the date on the mbox's From line in the current time zone. However, if the message's date is not in the same DST phase as the current date, the mtime of the file will be off by one hour. >How-To-Repeat: In PST: Find a message stored in an mbox which was received during DST (May - Oct). Copy it to a maildir, and compare the date in the mbox From line to the mtime of the message file in the mdir. >Fix: When parsing the From date, use the system TZ settings to get the time zone offset on that date, rather than the offset on the current date. }}} -- Comment: fixed in rev bc5fb152e2ba -- Ticket URL: <http://dev.mutt.org/trac/ticket/2177#comment:1> Mutt <http://www.mutt.org/> The Mutt mail user agent