<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>483061</bug_id>
          
          <creation_ts>2024-03-10 03:03:11 +0000</creation_ts>
          <short_desc>Akonadi server does not declare UTC times as UTC</short_desc>
          <delta_ts>2024-03-11 19:22:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>Akonadi</product>
          <component>server</component>
          <version>6.0.0</version>
          <rep_platform>Neon</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>483060</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>qt6</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua J. Kugler">joshua</reporter>
          <assigned_to name="kdepim bugs">pim-bugs-null</assigned_to>
          <cc>carl</cc>
    
    <cc>dvratil</cc>
    
    <cc>nicolas.fella</cc>
    
    <cc>thiago</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2298086</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua J. Kugler">joshua</who>
    <bug_when>2024-03-10 03:03:11 +0000</bug_when>
    <thetext>SUMMARY

STEPS TO REPRODUCE
1. Try to access e-mail in a time when you are going to &quot;spring forward&quot; and it generates an atime with a time between 2AM and 3AM.

OBSERVED RESULT
KMail hangs and gets the dreaded &quot;Retrieving folder contents&quot; hang. This error is seen in the logs:

Error text: &quot;Incorrect datetime value: &apos;2024-03-10 02:15:10&apos; for column `akonadi`.`pimitemtable`.`datetime` at row 1 QMYSQL: Unable to execute statement&quot;

This tipped me off: https://linustechtips.com/topic/1028839-mariadb-need-help-incorrect-datetime-value-2018-03-25-022324/

Conclusion: Akonadi is inserting time as UTC, but not declaring it UTC, and the DB server is saying &quot;That&apos;s not a valid time in my time zone!&quot; (I&apos;m currently in Americas/Anchorage).

Yes, I also am a programmer. Yes, I also hate date/time math.

EXPECTED RESULT
Message loads.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Neon all packages up to date
(available in About System)
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Now that is after 2024-03-10 03:00:00 UTC, I can once again access my e-mails. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2299058</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua J. Kugler">joshua</who>
    <bug_when>2024-03-11 18:11:52 +0000</bug_when>
    <thetext>It occurred to me this could also cause a problem with receiving e-mail. The &quot;datetime&quot; column is also a timestamp, and if Akonadi gets an e-mail that was sent between 2AM and 3AM UTC on a daly light savings change day, it could throw an error when trying to store it. Possibly resulting in data loss? I&apos;m not sure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2299138</commentid>
    <comment_count>2</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2024-03-11 19:22:13 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 483060 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>