Skip to content
Browse files

fixing month value in Js

  • Loading branch information...
1 parent 2f77db9 commit 7451cd42aad4a15c91d2718441456a0799317a27 @ronanguilloux committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/TemperaturePi/Logger.php
View
2 src/TemperaturePi/Logger.php
@@ -47,7 +47,7 @@ public function writeJsDatas()
$date = date_parse_from_format("Y-m-d H:i:s", $date);
$date = sprintf("%d,%d,%d,%d,%d,%d",
$date['year']
- , $date['month']
+ , ($date['month']-1)
, $date['day']
, $date['hour']
, $date['minute']

0 comments on commit 7451cd4

Please sign in to comment.
Something went wrong with that request. Please try again.