We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41784f3 commit f8c5e13Copy full SHA for f8c5e13
kchat/actions/plotly.php
@@ -30,6 +30,9 @@ function action(){
30
//generating start and end date of plot
31
$plot = json_decode($file_json,1);
32
$start = array_keys($plot);
33
+ if(!isset($start[0])){
34
+ $start[0] = date("Y-m-d H:0:0",time() - 604800);
35
+ }
36
$start = strtotime($start[0]);
37
$end = strtotime(date("Y-m-d H:00:00"));
38
$current = strtotime(date("Y-m-d H:00:00", $start));
0 commit comments