Closed ghost closed 5 years ago
Thanks @charlesmagnuson for reporting, could you tell me if this was the default home URL or a specified location?
e.g. wxkb.io or wxkb.io/san-fran ?
https://github.com/JulianNorton/weather-10kb/blob/development/weather10kb.js#L84 should be setting the correct time.
Not sure if related, but server was on Eastern Time but I've just now switched it to UTC.
While I’m not the author of the issue, I would like to confirm that changing the server time zone to UTC seems to have fixed the time displayed on the website for me. It now correctly displays my local time, was Eastern before.
Sorry for the slow reply! Just got back from lunch.
It appears the updated time now displays correctly on my end. Thank you very much for looking into the situation. To close the loop on your question, I was viewing wxkb.io directly with no specified location.
Myself and @modelm are having this issue again.
Server time is still correctly UTC. Needs investigation:
I restarted the node process and it seemed to fix it. I'm baffled.
forever stopall
[secret key pairs… ] forever start index.js
error logs:
[Tue Feb 07 12:32:17.606283 2017] [proxy:error] [pid 23369:tid 139764795692800] AH00940: HTTP: disabled connection for (localhost)
[Wed Feb 15 13:29:18.031746 2017] [proxy:error] [pid 6229:tid 139764753729280] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:5000 (localhost) failed
[Wed Feb 15 13:29:18.032087 2017] [proxy:error] [pid 6229:tid 139764753729280] AH00959: ap_proxy_connect_backend disabling worker for (localhost) for 0s
[Wed Feb 15 13:29:18.032130 2017] [proxy_http:error] [pid 6229:tid 139764753729280] [client 208.185.185.131:54478] AH01114: HTTP: failed to make connection to backend: localhost
[Wed Feb 15 13:29:18.219333 2017] [proxy:error] [pid 6272:tid 139764636231424] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:5000 (localhost) failed
[Wed Feb 15 13:29:18.219463 2017] [proxy:error] [pid 6272:tid 139764636231424] AH00959: ap_proxy_connect_backend disabling worker for (localhost) for 0s
[Wed Feb 15 13:29:18.219482 2017] [proxy_http:error] [pid 6272:tid 139764636231424] [client 208.185.185.131:56999] AH01114: HTTP: failed to make connection to backend: localhost, referer: https://wxkb.io/
[Wed Feb 15 13:29:19.303341 2017] [proxy:error] [pid 6229:tid 139764770514688] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:5000 (localhost) failed
[Wed Feb 15 13:29:19.303369 2017] [proxy:error] [pid 6229:tid 139764770514688] AH00959: ap_proxy_connect_backend disabling worker for (localhost) for 0s
[Wed Feb 15 13:29:19.303375 2017] [proxy_http:error] [pid 6229:tid 139764770514688] [client 130.157.41.199:61662] AH01114: HTTP: failed to make connection to backend: localhost, referer: https://wxkb.io/
This issue has re-surfaced.
Restarting the node process didn't resolve the time difference. Error logs didn't seem to provide any additional info.
Do you still experience this issue? I see the correct local time on both the production site and my local version.
@Tardog It resolved on it's own! What worries me is that I don't know why it happened. Closing for now and hope it was a temporary problem.
Happening again. Restarted node process and upgraded server distribution with no luck.
This issue (or a similar one) is happening again. Looks like the time is set 6hrs ahead of my current time.
@Mursenary44 any recommendations? I tried restarting the service but it didn't fix it.
Doing a server reboot didn't work either.
Still an issue, we think https://github.com/JulianNorton/weather-10kb-wxkb/commit/4493546ce0e4e7d970a2fcd598af67c7b16357ca is the route to solve it. Basically google's timezone API wasn't being set/used.
https://gist.github.com/JulianNorton/5a828b5537f6dc09ed893836586286cd
Thinking about just changing it to "X hours from now". I'll submit a PR on Monday.
@Mursenary44 see https://github.com/JulianNorton/weather-10kb-wxkb/pull/206 !
Issue: In the Now section of the weather report is a short bit of text which reads "(updated: {time})". This text lets the user know when the weather report was generated. Unfortunately, the time only appears to represent Eastern Time instead of the user's local time.
For example, when viewing the weather in San Francisco this morning, the webpage claims that the weather report is from the future: http://ca.mag.cm/3E422I1C061v
Solution: It would be helpful if the updated time displayed on the page was adjusted to correspond with the user's local timezone.