<?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>194302</bug_id>
          
          <creation_ts>2009-05-27 13:58:19 +0000</creation_ts>
          <short_desc>KDEµBlog is wrong about when a micropost was published</short_desc>
          <delta_ts>2010-02-27 14:34:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>plasma4</product>
          <component>widget-microblogging</component>
          <version>unspecified</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Js Lebacq">js.lebacq</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>andresbajotierra</cc>
    
    <cc>annma</cc>
    
    <cc>aseigo</cc>
    
    <cc>dan</cc>
    
    <cc>jbrouault</cc>
    
    <cc>karl</cc>
    
    <cc>michael</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>765632</commentid>
    <comment_count>0</comment_count>
    <who name="Js Lebacq">js.lebacq</who>
    <bug_when>2009-05-27 13:58:19 +0000</bug_when>
    <thetext>Version:            (using KDE 4.2.85)
Installed from:    Ubuntu Packages

KDEµBlog is wrong about when a micropost was published. For example, when a micropost was published 2 hours ago, it says 3 or 4 hours!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>765749</commentid>
    <comment_count>1</comment_count>
    <who name="Anne-Marie Mahfouf">annma</who>
    <bug_when>2009-05-27 17:13:03 +0000</bug_when>
    <thetext>Is it with Twitter? Identi.ca? both?
Does it happen only with new posts? 
Did you just open your account?

Please add as much information as possible, thanks in advance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>765767</commentid>
    <comment_count>2</comment_count>
    <who name="Js Lebacq">js.lebacq</who>
    <bug_when>2009-05-27 17:40:15 +0000</bug_when>
    <thetext>&gt; &quot;Is it with Twitter? Identi.ca? both?&quot;
I only use identi.ca

&gt; &quot;Does it happen only with new posts?&quot;
The problem begin at the start of the app and for all the status displayed in the plasmoid.

&gt; &quot;Did you just open your account?&quot;
No, I&apos;m an older user of identi.ca than KDEµBlog.

Also, for the moment it is always 1 or 2 hour more than the reality, like in my first example.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>765796</commentid>
    <comment_count>3</comment_count>
    <who name="Anne-Marie Mahfouf">annma</who>
    <bug_when>2009-05-27 18:47:19 +0000</bug_when>
    <thetext>Is there a pattern for the +1 or +2 hours? Is it correct on Identi.ca website?
Did you only start using the applet now? Or did it work correctly some time back?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>765802</commentid>
    <comment_count>4</comment_count>
    <who name="Js Lebacq">js.lebacq</who>
    <bug_when>2009-05-27 19:04:00 +0000</bug_when>
    <thetext>&gt; &quot;Is there a pattern for the +1 or +2 hours?&quot;
Sorry, it seems I&apos;m unable to find it.

&gt; &quot;Is it correct on Identi.ca website?&quot;
Well, yes, as far as I can see.

&gt; &quot;Did you only start using the applet now? Or did it work correctly some time
back?&quot;
I began to use it one day ago.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>765862</commentid>
    <comment_count>5</comment_count>
    <who name="Aaron J. Seigo">aseigo</who>
    <bug_when>2009-05-27 20:18:05 +0000</bug_when>
    <thetext>let me guess, your timezone is UTC+1 or UTC+2? :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>765866</commentid>
    <comment_count>6</comment_count>
    <who name="Aaron J. Seigo">aseigo</who>
    <bug_when>2009-05-27 20:27:15 +0000</bug_when>
    <thetext>SVN commit 973716 by aseigo:

created_at (aka &quot;Date&quot; from the engine) is always in UTC, so don&apos;t use the current system time but the current UTC time to establish how long ago the tweet was made
BUG:194302


 M  +21 -21    microblog.cpp  
 M  +4 -0      microblog.h  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=973716</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>811255</commentid>
    <comment_count>7</comment_count>
      <attachid>36115</attachid>
    <who name="Jean-Baptiste Rouault">jbrouault</who>
    <bug_when>2009-08-13 01:16:04 +0000</bug_when>
    <thetext>Created attachment 36115
Patch to set TimeSpec to UTC

My timezone is UTC+2 and the microblogging widget always has a 2 hours shift.
Seems to be because the TimeSpec of the QDateTime created by toDateTime() is local instead of being UTC.
The attached patch set the TimeSpec to UTC.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>814741</commentid>
    <comment_count>8</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2009-08-19 04:32:47 +0000</bug_when>
    <thetext>This is still present on KDE4.3: bug 203949; so I guess it was not fixed properly or reappeared on 4.3.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>815560</commentid>
    <comment_count>9</comment_count>
    <who name="Jean-Baptiste Rouault">jbrouault</who>
    <bug_when>2009-08-20 12:34:06 +0000</bug_when>
    <thetext>SVN commit 1013632 by jbrouault:

Force the tweet date to UTC time spec to establish how long ago the tweet was posted.
BUG:194302
BUG:203949



 M  +3 -1      microblog.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1013632</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>829248</commentid>
    <comment_count>10</comment_count>
    <who name="Jean-Baptiste Rouault">jbrouault</who>
    <bug_when>2009-09-12 13:44:44 +0000</bug_when>
    <thetext>SVN commit 1022729 by jbrouault:

backport of r1013632
BUG:194302
BUG:203949


 M  +3 -1      microblog.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1022729</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>829294</commentid>
    <comment_count>11</comment_count>
    <who name="Dario Andres">andresbajotierra</who>
    <bug_when>2009-09-12 15:42:17 +0000</bug_when>
    <thetext>*** Bug 203949 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>913961</commentid>
    <comment_count>12</comment_count>
      <attachid>40635</attachid>
    <who name="Michael Homer">michael</who>
    <bug_when>2010-02-10 09:33:18 +0000</bug_when>
    <thetext>Created attachment 40635
Consider timestamps as UTC when displaying

This is against the 4.4.0 tarball of KDE-Plasma-Addons, and based on the change in the patch applied to the 4.3 series.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>913969</commentid>
    <comment_count>13</comment_count>
    <who name="Michael Homer">michael</who>
    <bug_when>2010-02-10 09:40:01 +0000</bug_when>
    <thetext>The issue has reappeared in 4.4.0 and the previous patch no longer applies as the display has been split out to another file. The attached patch makes the same basic change as Jean-Baptiste&apos;s, but now in postwidget.cpp for the widget. It has solved the problem locally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>925153</commentid>
    <comment_count>14</comment_count>
    <who name="Dan">dan</who>
    <bug_when>2010-02-26 23:24:24 +0000</bug_when>
    <thetext>I confirm that the issue is back on KDE 4.4, I just posted a new bug report, but will remove it if I see action.

It&apos;s been a long time since I have applied a patch, can you point me to a &quot;how-to&quot; so I can fix and affirm?

Thanks!
Dan</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>925411</commentid>
    <comment_count>15</comment_count>
    <who name="Anne-Marie Mahfouf">annma</who>
    <bug_when>2010-02-27 13:19:40 +0000</bug_when>
    <thetext>*** Bug 228676 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>925446</commentid>
    <comment_count>16</comment_count>
    <who name="Anne-Marie Mahfouf">annma</who>
    <bug_when>2010-02-27 13:59:14 +0000</bug_when>
    <thetext>SVN commit 1096698 by annma:

Thanks Michael for the patch, too bad I did not see this before 4.4.1 tagging, will only be in 4.4.2.
Will fixe also in trunk
BUG=194302


 M  +1 -0      postwidget.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1096698</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>925496</commentid>
    <comment_count>17</comment_count>
    <who name="Anne-Marie Mahfouf">annma</who>
    <bug_when>2010-02-27 14:34:59 +0000</bug_when>
    <thetext>SVN commit 1096721 by annma:

port 1096698 to trunk (fixe timeline)
CCBUG=194302


 M  +1 -0      postwidget.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1096721</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>36115</attachid>
            <date>2009-08-13 01:16:04 +0000</date>
            <delta_ts>2009-08-13 01:16:04 +0000</delta_ts>
            <desc>Patch to set TimeSpec to UTC</desc>
            <filename>microblog.cpp.patch</filename>
            <type>text/plain</type>
            <size>1171</size>
            <attacher name="Jean-Baptiste Rouault">jbrouault</attacher>
            
              <data encoding="base64">SW5kZXg6IG1pY3JvYmxvZy5jcHAKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gbWljcm9ibG9nLmNwcAkocmV2aXNp
b24gMTAxMDU5OSkKKysrIG1pY3JvYmxvZy5jcHAJKHdvcmtpbmcgY29weSkKQEAgLTU0Niw5ICs1
NDYsMTEgQEAKICAgICAgICAgfQogCiAgICAgICAgIFFMb2NhbGUgZW5nbGlzaChRTG9jYWxlOjpF
bmdsaXNoLCBRTG9jYWxlOjpVbml0ZWRTdGF0ZXMpOworICAgICAgICBRRGF0ZVRpbWUgZHQgPSBl
bmdsaXNoLnRvRGF0ZVRpbWUodHdlZ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9bXlxcczw+J1wiXStbXiEsXFwuXFxzPD4nXCJcXF1d
KSIpLCAiPGEgaHJlZj0nXFwxJz5cXDE8L2E+Iik7Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>40635</attachid>
            <date>2010-02-10 09:33:18 +0000</date>
            <delta_ts>2010-02-10 09:33:18 +0000</delta_ts>
            <desc>Consider timestamps as UTC when displaying</desc>
            <filename>01-microblog-timezones.patch</filename>
            <type>text/plain</type>
            <size>1039</size>
            <attacher name="Michael Homer">michael</attacher>
            
              <data encoding="base64">TWFrZSBtaWNyb2Jsb2cgcGxhc21vaWQgdW5kZXJzdGFuZCB0aW1lem9uZXMuCgpBbGwgdGhlIHRp
bWVzIGZyb20gdGhlIGVuZ2luZSBhcmUgVVRDLCBidXQgdGhlIGRpc3BsYXkgd2lkZ2V0IHVzZXMg
bG9jYWwKdGltZSB0byBmaWd1cmUgb3V0IGl0cyB0aW1lc3RhbXBzICgiMTEgbWludXRlcyBhZ28i
KS4gSW4gYSBub24tVVRDIHRpbWV6b25lCmFsbCBzdGFtcHMgd2lsbCBiZSBpbiBob3VycyBhbmQg
aW5jb3JyZWN0IG9yIGZpeGVkIGF0IHplcm8uIFRoaXMgcGF0Y2gKbWFrZXMgaXQgY29uc2lkZXIg
dGhlIHRpbWVzIGFzIFVUQyB3aGVuIGNhbGN1bGF0aW5nLCB0aGUgc2FtZSBjaGFuZ2UgdGhhdAp3
YXMgbWFkZSBpbiB0aGUgNC4zIHNlcmllcy4KClNpZ25lZC1vZmYtYnk6IE1pY2hhZWwgSG9tZXIg
PG1pY2hhZWxAZ29ib2xpbnV4Lm9yZz4KLS0tIGtkZXBsYXNtYS1hZGRvbnMtNC40LjAvYXBwbGV0
cy9taWNyb2Jsb2cvcG9zdHdpZGdldC5jcHAub3JpZwkyMDEwLTAyLTEwIDIxOjIwOjIzLjAwMDAw
MDAwMCArMTMwMAorKysga2RlcGxhc21hLWFkZG9ucy00Lj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