selfoss-android icon indicating copy to clipboard operation
selfoss-android copied to clipboard

Timezone issue

Open jbfavre opened this issue 10 years ago • 5 comments

Hello, Selfoss-android displays articles with wrong hour. I guess it's somewhat related to timezones.

You'll find 2 screenshots, first from selfoss-web interface, second from android. Web interface displays coherents hours when selfoss-android seems to consider hours as UTC.

selfoss-android-hour-bug selfoss-web-hour-bug

jbfavre avatar Oct 19 '14 11:10 jbfavre

You're right, I expect articles date to be in UTC timezone. It works for my instance so I guessed Selfoss server was returning dates in this timezone. Do you know in which timezone the server considers dates ? Does it depend on the timezone of the server ?

yDelouis avatar Oct 20 '14 09:10 yDelouis

Give the database items table structure (no timezone given), I would say it depends on server timezone and/or on PHP date.timezone config param

jbfavre avatar Oct 20 '14 10:10 jbfavre

So there is no way for the app to know which timezone to expect... Any idea about how to solve this issue (except by asking the user in the settings) ?

yDelouis avatar Oct 20 '14 11:10 yDelouis

Maybe we should change the server-side code to return only UTC dates ? What do you think ?

yDelouis avatar Oct 20 '14 11:10 yDelouis

I would like to say yes, but I have no decision in it. More, this will require an content update script to convert each and every datetime in selfoss from server/PHP timezone to UTC. Maybe @SSilence could give his advice on it ?

jbfavre avatar Oct 20 '14 12:10 jbfavre