Include hours minutes and seconds in date range so timestamps are not truncated to 12am each day.

This commit is contained in:
paul121 2020-08-25 15:01:56 -07:00 committed by Michael Stenta
parent cb57c29a93
commit f810938f08
1 changed files with 2 additions and 2 deletions

View File

@ -712,8 +712,8 @@ function farm_sensor_listener_data_graphs_form($form, &$form_state, $asset) {
'#default_value' => $names,
);
// Provide a default date in the format YYYY-MM-DD.
$format = 'Y-m-d';
// Provide a default date in the format YYYY-MM-DD HH-MM-SS.
$format = 'Y-m-d H:i:s';
// Get the latest timestamp data from saved data
// or default to current time.