Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Jun 4, 2024
1 parent 072e349 commit c91cd5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/class/history.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1032,9 +1032,9 @@ public function save($_cmd = null, $_direct = false) {
&& $this->getValue() !== null ) {
if ($this->getTableName() == 'history') {
$time = strtotime($this->getDatetime());
$time -= $time % $cmd->getConfiguration('smooth', config::byKey('history::smooth','core',0));
$time -= $time % $cmd->getConfiguration('history::smooth', config::byKey('history::smooth','core',0));
if ($this->getValue() == 0) {
$this->setDatetime(date('Y-m-d H:i:00', $time + $cmd->getConfiguration('smooth', config::byKey('history::smooth','core',0))));
$this->setDatetime(date('Y-m-d H:i:00', $time + $cmd->getConfiguration('history::smooth', config::byKey('history::smooth','core',0))));
$values = array(
'cmd_id' => $this->getCmd_id(),
'datetime' => date('Y-m-d H:i:00', strtotime($this->getDatetime())),
Expand Down

0 comments on commit c91cd5c

Please sign in to comment.