You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 like2017-03-02 15:55:12
for the UTC time.But in
api/notifications.rb
it converts time withto_time
, this function use local timezone by default, so I think the time without UTC offset will be converts to2017-03-02 07:55:12 +0000
.I have try to change the two function in
api/notifications.rb
toto_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.
The text was updated successfully, but these errors were encountered: