GitHub user sebbASF opened an issue:

    https://github.com/apache/incubator-ponymail/issues/84

    Bug: emails allocated to wrong month

    Emails which are sent within a few hours of the end of a month may be 
incorrectly allocated to the subsequent month.
    
    For example, the earliest emails in the following mbox should be in the May 
2015 chunk.
    
    https://lists.apache.org/[email protected]:2015-6
    
    The displayed timestamp shows the date 2015-05-31 (assuming that the local 
TZ is no further east than GMT+1)
    
    These mails were uploaded from a file, if that makes a difference.
    
    It looks like the mails were allocated to a month based on a local timezone 
at least 2 hours before GMT.
    It does not make sense to use the local timezone for this. The database 
should work in UTC only.
    If necessary, the display can show times using the local timezone, but the 
underlying data should only be stored in UTC.
    
    I found one place where localtime is used in the backend code:
    
    
https://github.com/apache/incubator-ponymail/blob/master/tools/archiver.py#L274
    
    This would probably cause the upload issue.
    
    See also https://issues.apache.org/jira/browse/INFRA-12079

----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to