1. 18 Jan, 2017 4 commits
  2. 17 Jan, 2017 7 commits
  3. 16 Jan, 2017 2 commits
  4. 14 Jan, 2017 1 commit
  5. 13 Jan, 2017 3 commits
  6. 12 Jan, 2017 5 commits
  7. 11 Jan, 2017 8 commits
    • Laurent Montel's avatar
      Remove unused method · 8575b8c6
      Laurent Montel authored
      8575b8c6
    • Laurent Montel's avatar
    • Laurent Montel's avatar
      Apply patch from Matt Whitlock + add autotest to validate it · 48ecc0d6
      Laurent Montel authored
      QDateTime::time() returns a QTime, which conveys no time zone information. QLocale::toString(const QTime &, QLocale::FormatType) then assumes that the passed QTime is a local time. This causes a problem when processing a template in that the time zone information of the Date header in the original message is ignored, and the time part is then reinterpreted as a local time, which is incorrect.
      
      Example illustrating the problem:
      
      	Original message header:
      	Date: Sun, 1 Jan 2017 13:31:25 -0600
      
      	%OTIMELONG in reply template expands to:
      	1:31:25 PM EST
      
      QLocale apparently offers no method to format a QTime with a specific QTimeZone, so the best that can be done is to convert the QDateTime of the original message into a local time by calling QDateTime::toLocalTime().
      
      After applying this fix, the above example becomes:
      
      	Original message header:
      	Date: Sun, 1 Jan 2017 13:31:25 -0600
      
      	%OTIMELONG in reply template expands to:
      	2:31:25 PM EST
      
      BUG: 308444
      BUG: 355195
      BUG: 366768
      (cherry picked from commit 2fafabbf)
      48ecc0d6
    • Laurent Montel's avatar
      Try to test in other timezone · 9a99bb28
      Laurent Montel authored
      (cherry picked from commit bc77544a)
      9a99bb28
    • Laurent Montel's avatar
      Add autotest I need to implement support for timezone · 29f7db27
      Laurent Montel authored
      (cherry picked from commit 0d709a12)
      29f7db27
    • Laurent Montel's avatar
      Apply patch from Matt Whitlock + add autotest to validate it · 2fafabbf
      Laurent Montel authored
      QDateTime::time() returns a QTime, which conveys no time zone information. QLocale::toString(const QTime &, QLocale::FormatType) then assumes that the passed QTime is a local time. This causes a problem when processing a template in that the time zone information of the Date header in the original message is ignored, and the time part is then reinterpreted as a local time, which is incorrect.
      
      Example illustrating the problem:
      
      	Original message header:
      	Date: Sun, 1 Jan 2017 13:31:25 -0600
      
      	%OTIMELONG in reply template expands to:
      	1:31:25 PM EST
      
      QLocale apparently offers no method to format a QTime with a specific QTimeZone, so the best that can be done is to convert the QDateTime of the original message into a local time by calling QDateTime::toLocalTime().
      
      After applying this fix, the above example becomes:
      
      	Original message header:
      	Date: Sun, 1 Jan 2017 13:31:25 -0600
      
      	%OTIMELONG in reply template expands to:
      	2:31:25 PM EST
      
      BUG: 308444
      BUG: 355195
      BUG: 366768
      2fafabbf
    • Laurent Montel's avatar
      Try to test in other timezone · bc77544a
      Laurent Montel authored
      bc77544a
    • Laurent Montel's avatar
      0d709a12
  8. 10 Jan, 2017 4 commits
  9. 09 Jan, 2017 4 commits
  10. 08 Jan, 2017 1 commit
  11. 05 Jan, 2017 1 commit