[solved] Difference in Time in Graph "Detailed" <> "Index"

Talks about solar stuff
Post Reply
neumi
Posts: 4
Joined: Sun Jun 12, 2016 2:51 pm

[solved] Difference in Time in Graph "Detailed" <> "Index"

Post by neumi » Mon Jan 09, 2017 1:21 pm

Hallo,

just discovered strange behavior....
Displaying the Graph on "Index" page ( http://neumi.selfhost.bz/123solar/ ) the time is correct.
Switching to page "Detail" ( http://neumi.selfhost.bz/123solar/detailed.php) the Graph shows the time 1h earlier.
Example:
Last update was 13:10 and this is displayed in the "Index" page but the "Detail" page only shows 12:10.


Version of 123solar is 1.6.9.1
System: Linux raspberrypi 4.4.38+ #938 Thu Dec 15 15:17:54 GMT 2016 armv6l
PHP version: 5.6.29-0+deb8u1
Last edited by neumi on Mon Jan 09, 2017 2:20 pm, edited 1 time in total.

jeanmarc
Posts: 1853
Joined: Thu Aug 29, 2013 7:16 am

Re: Difference in Time in Graph "Detailed" <> "Index"

Post by jeanmarc » Mon Jan 09, 2017 2:13 pm

Hi,
Force to use GMT in programs/programdetailed.php

Code: Select all

<?php
define('checkaccess', TRUE);
include('../config/config_main.php');
date_default_timezone_set('GMT');
...

neumi
Posts: 4
Joined: Sun Jun 12, 2016 2:51 pm

Re: Difference in Time in Graph "Detailed" <> "Index"

Post by neumi » Mon Jan 09, 2017 2:19 pm

Hello,

Added line.
It worked; now the time in both Graphs is OK.
Thanks!

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 4 guests