google-code-export / measureit

Automatically exported from code.google.com/p/measureit
1 stars 0 forks source link

Timezones are only parsed correctly if they are a 1 digit offset. #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open the sensor settings and change the timezone offset to 10
2. Goto the graph view.
3. Observe that the offset is only 1 hour instead of 10.

What version of the product are you using? On what operating system?
Version 111.tgz

To fix : 

In measureit_functions.php Line 428, change \d to be \d+ to include multiple 
digits in the regex for $r[2].

Example fixed line:
       preg_match( '/(-)?(\d+)/', $sensor[$params['sensor']]['measure_timezone_diff'], $r );

Original issue reported on code.google.com by leonmull...@gmail.com on 11 Mar 2012 at 6:43

GoogleCodeExporter commented 9 years ago
fixed in version 112 that is now online

Original comment by lalelu...@gmail.com on 10 Jul 2012 at 5:49