Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timezone issue #40

Open
jbfavre opened this issue Oct 19, 2014 · 5 comments
Open

Timezone issue #40

jbfavre opened this issue Oct 19, 2014 · 5 comments
Labels

Comments

@jbfavre
Copy link

jbfavre commented Oct 19, 2014

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

@yDelouis
Copy link
Owner

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 yDelouis added the bug label Oct 20, 2014
@jbfavre
Copy link
Author

jbfavre commented Oct 20, 2014

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

@yDelouis
Copy link
Owner

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
Copy link
Owner

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

@jbfavre
Copy link
Author

jbfavre commented Oct 20, 2014

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants