{"action":"created","issue":{"url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/186","labels_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/186/comments","events_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/186/events","html_url":"https://github.com/OfflineIMAP/offlineimap/issues/186","id":65271227,"number":186,"title":"sending internal date with incorrect timezone","user":{"login":"mjhoy","id":106337,"avatar_url":"https://avatars.githubusercontent.com/u/106337?v=3","gravatar_id":"","url":"https://api.github.com/users/mjhoy","html_url":"https://github.com/mjhoy","followers_url":"https://api.github.com/users/mjhoy/followers","following_url":"https://api.github.com/users/mjhoy/following{/other_user}","gists_url":"https://api.github.com/users/mjhoy/gists{/gist_id}","starred_url":"https://api.github.com/users/mjhoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjhoy/subscriptions","organizations_url":"https://api.github.com/users/mjhoy/orgs","repos_url":"https://api.github.com/users/mjhoy/repos","events_url":"https://api.github.com/users/mjhoy/events{/privacy}","received_events_url":"https://api.github.com/users/mjhoy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OfflineIMAP/offlineimap/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-30T18:23:17Z","updated_at":"2015-04-08T23:51:52Z","closed_at":"2015-04-08T23:51:52Z","body":"Hello,\r\n\r\nI use offlineimap to sync my fastmail account. I noticed that on the fastmail web interface the emails I had sent locally, and synced up to the fastmail sent folder via offlineimap, reported dates that were 1 hour off (in the future).\r\n\r\nA bit of talking with fastmail support, I think I found the issue: offlineimap sends date metadata (this is the \"internaldate\" in imap protocol, I think?) that is not the correct timezone.\r\n\r\nHere is what I think is the relevant portion of the output from running ```offlineimap -d imap```:\r\n\r\nhttps://gist.githubusercontent.com/mjhoy/63e1a1c5d1d408a33285/raw/7111a4f280d13e37ff7d85b333db293fb2775782/gistfile1.txt\r\n\r\nThe date header in my test email is set to Mon, 30 Mar 2015 14:03:50 -0400. However there is this line:\r\n\r\n```[imap]:   05:05.70 mail.messagingengine.com writer > DLKE23 APPEND \"INBOX.Sent Items\" (\\Seen) \"30-Mar-2015 14:03:51 -0500\"```\r\n\r\nWhich I believe is offlineimap reporting the incorrect time (-0500 instead of -0400).\r\n\r\nRegardless of what my system timezone is set to: Shouldn't the internaldate always be the same as whatever is in the Date header? If my system is the issue, I'm on OS X 10.9, my timezone is set to -0400.\r\n\r\nOfflineimap version 6.5.5.\r\n\r\nMy email client is emacs.\r\n\r\nThanks, and apologies if I'm misunderstanding what IMAP is supposed to do or what the protocol is.\r\nMike"},"comment":{"url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/comments/91070952","html_url":"https://github.com/OfflineIMAP/offlineimap/issues/186#issuecomment-91070952","issue_url":"https://api.github.com/repos/OfflineIMAP/offlineimap/issues/186","id":91070952,"user":{"login":"nicolas33","id":90065,"avatar_url":"https://avatars.githubusercontent.com/u/90065?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolas33","html_url":"https://github.com/nicolas33","followers_url":"https://api.github.com/users/nicolas33/followers","following_url":"https://api.github.com/users/nicolas33/following{/other_user}","gists_url":"https://api.github.com/users/nicolas33/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas33/subscriptions","organizations_url":"https://api.github.com/users/nicolas33/orgs","repos_url":"https://api.github.com/users/nicolas33/repos","events_url":"https://api.github.com/users/nicolas33/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas33/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T23:51:52Z","updated_at":"2015-04-08T23:51:52Z","body":"Thank you much! Applied."}}