-
Notifications
You must be signed in to change notification settings - Fork 66
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
Bug: Offline time does not coincide with the set timezone. #165
Comments
@JourneyOver Got it. Did you set your server timezone different than what timezone it's actually in? |
@seanvree nope, I'm running everything off of the computer that I am currently using and timezone and all that are correct on the computer, along with the time that shows up on the monitorr clock, it seems to only be the offline banner time that ends up being way off. |
@JourneyOver got it. So just to be clear, when it FIRST goes offline is the offline time in the banner right, or it's off no matter what? |
It's always off, I had even done a test with taking one of the things I was monitoring off seeing if it was possibly just a fluke due to a server being off when first running monitorr and setting everything up (getting settings up and all that kinda stuff), but no matter if it was during first setup or after the time in the banner has always been wrong for when things went off. |
@JourneyOver humm, weird. Can you do me a favor? Can you download the file at the location below: https://gist.github.com/seanvree/48fff2655245a4b3b3cd330f5155bdcf And use the downloaded file to replace the file at /assets/php/check.php ? just rename your current check.php to check.php.old and put this file in it's place. After you do that, make sure all your services are online, then bring one or two offline. You should now see a timezone after the actual time in the offline banner. Is that timezone the same timezone as the clock in the UI? |
done that and can pretty much say nope not at all on the banner and the timezone showing the same, The timezone that shows for the banner is coming up as just UTC, while my server and the settings I have monitorr set for are set as both central time. |
Okay, I know what's up. Two more questions... is the actual server in central time? Also, do you know where your php.ini file is? Can you check the value at approx line 950, what is this value?
|
Yes actual server/computer is in central time as I am currently in central time typing on said server/computer and the time on the clock is correct xD as for the php.ini file date.timezone, that section seems to be commented out. I used https://github.com/elmerfdz/OrganizrInstaller ( specifically this https://github.com/elmerfdz/OrganizrInstaller/tree/master/windows/o2wi ) to initially set up nginx and all that and it looks like it default came that way https://github.com/elmerfdz/OrganizrInstaller/blob/master/windows/o2wi/config/php.ini#L939 and I haven't touched the php.ini file any yet. |
Yeah, cool. It's actually a bug in our code, but yeah, that just tells any php script that is running on your webserver to use that timezone. So, it's good to set that, but I'll make a change in our code. Thanks brother. Cheers. |
Not a problem at all :) as said glad we figured it out and found an issue in monitorrs code in the process. |
TO DO: Add global timezone variable in check.php from $jsonusers['timezone'];
Will push with next version. |
changelog for version: 1.7.0 1. ADD: Ping response time for services. See: #113 2. ADD: User defined HD volume / multiple volumes: see: #148 3. ADD: Monitorr release changelog. See: #123 4. FIX: Offline time does not coincide with the set timezone. See: #165 5. ADD: Disable browser output error if service is down. See: #174 6. CHANGE: New JS clock 7. ADD: execute single service check on settings.php load and when submit changes on Services Config settings page 8. CHANGE: Move UI icons from /img dir 9. FIX: Remove offline.json log files on service config settings page submit to prevent rouge offline.json files. 10. FIX: Prevent null data posting to json settings files 11. CHANGE: correct scroll bars on settings pages 12. FIX: Uptime format on Windows 13. CHANGE: Change custom css script to local from CDN. 14. FIX: Update via UI will override custom CSS. 15. Add: Form validation to user input on _register form. 16. Add: CSS classes added to service images. 17. Change: date display on min site: to NOT show year. 18. Change: img upload error message / img upload modal color 19. Change: Clock will not sync when auto-update toggle is disabled . 20. Add: refresh marquee on settings page load. 21. ADD: MAIN PING indicator to respect color values.
Changelog to version 1.7 1. ADD: Ping response time for services. See: #113 2. ADD: User defined HD volume / multiple volumes: see: #148 3. ADD: Monitorr release changelog. See: #123 4. FIX: Offline time does not coincide with the set timezone. See: #165 5. ADD: Disable browser output error if service is down. See: #174 6. CHANGE: New JS clock 7. ADD: execute single service check on settings.php load and when submit changes on Services Config settings page 8. CHANGE: Move UI icons from /img dir 9. FIX: Remove offline.json log files on service config settings page submit to prevent rouge offline.json files. 10. FIX: Prevent null data posting to json settings files 11. CHANGE: correct scroll bars on settings pages 12. FIX: Uptime format on Windows 13. CHANGE: Change custom css script to local from CDN. 14. FIX: Update via UI will override custom CSS. 15. Add: Form validation to user input on _register form. 16. Add: CSS classes added to service images. 17. Change: date display on min site: to NOT show year. 18. Change: img upload error message / img upload modal color 19. Change: Clock will not sync when auto-update toggle is disabled . 20. Add: refresh marquee on settings page load. 21. ADD: MAIN PING indicator to respect color values.
FIXED: with v 1.7.6 https://github.com/Monitorr/Monitorr/releases |
Your environment:
Operating system: Windows 10 Pro x64 build: 1803
Webserver: NGINX v. 1.14.0
PHP Version: 7.2.5 x64 NTS
Monitorr Version: 1.6.2d (in the footer of the Monitorr UI)
Describe your issue:
I have read the t-shooting Wiki at: https://github.com/Monitorr/Monitorr/wiki/06-Troubleshooting
Pretty much as the title states and what I have said in discord, whenever a service goes offline the offline banner does not coincide with server time.
Example: A service is up one moment and then it goes down but monitorrs offline banner time shows that it went offline hours ago even though it only went offline a minute ago.
I have timezone and everything else set correctly.
The text was updated successfully, but these errors were encountered: