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

Maybe a timezone confusion? #239

Open
romain-li opened this issue Mar 2, 2017 · 0 comments
Open

Maybe a timezone confusion? #239

romain-li opened this issue Mar 2, 2017 · 0 comments

Comments

@romain-li
Copy link

My notifier service can't get the newest discussion digest.

My server is in CST timezone, and the notifier service call notifications API with the dt_format = '%Y-%m-%d %H:%M:%S%z' format, it's always like 2017-03-02 15:55:12 for the UTC time.
But in api/notifications.rb it converts time with to_time, this function use local timezone by default, so I think the time without UTC offset will be converts to 2017-03-02 07:55:12 +0000.

I have try to change the two function in api/notifications.rb to to_time(:utc), for now, the API works.
But I'm not very familiar with ruby on rails, so I'm not sure it's a correct solution.

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

No branches or pull requests

1 participant