<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>selfoss support forum - Android client (yDelouis) shows wrong time (&amp; poss. fix)</title>
<link>https://forum.selfoss.aditu.de/</link>
<description>selfoss support forum</description>
<language>en</language>
<item>
<title>Android client (yDelouis) shows wrong time (&amp; poss. fix) (reply)</title>
<content:encoded><![CDATA[<p>Thanks for posting.</p>
<p>There is also the new Android client: <a href="https://github.com/aminecmi/ReaderforSelfoss">https://github.com/aminecmi/ReaderforSelfoss</a></p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=1274</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=1274</guid>
<pubDate>Fri, 22 Sep 2017 11:11:15 +0000</pubDate>
<dc:creator>jtojnar</dc:creator>
</item>
<item>
<title>Android client (yDelouis) shows wrong time (&amp; poss. fix)</title>
<content:encoded><![CDATA[<p>The Selfoss Android client by yDelouis expects time to be in UTC. As I am using UTC +2 or UTC +1 on my server it will always show the wrong time.<br />
The problem is already in the <a href="https://github.com/yDelouis/selfoss-android/issues/40">issues</a>, but the discussion there is from 2014 and is basically suggesting changing the server time to UTC.</p>
<p>As much as this feels like wagging the dog, it is my only chance, since I don't have a current Android IDE (and cannot code Java anyway).</p>
<p>Trying to solve this on the server side, I put </p>
<p>date_default_timezone_set('UTC');</p>
<p>just after the namespace import in these files:</p>
<p>helpers/ContentLoader.php<br />
helpers/Viewhelper.php</p>
<p>So far this works for me. datetime in selfoss_items on the the server (MySQL) will be UTC. Android client and web show the correct time.<br />
I don't know what it might break, but feed updates seem to work fine.</p>
<p>PHP 5.5.38<br />
MySQL 5.7.15</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=1273</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=1273</guid>
<pubDate>Fri, 22 Sep 2017 10:22:55 +0000</pubDate>
<dc:creator>danthat</dc:creator>
</item>
</channel>
</rss>
