If you want to see time of the real last freshclam start , you should change file :
Looking at the Disk Usage, I have the sameā¦
Actually, the date and time are 2015-10-14 22:39 ( at the top there only the time )
The update: 2015-10-15 01:38 at the butomā¦
$timestamp = $stat[āmtimeā];
The same behavior in DUC.php mtime, so my suggestion maybe right
Check the PHP datetime is the same sa the system:
config getprop php DateTimezone
config show TimeZone
Reference:
You just found the problem
Align the two values and youāre done.
I guess the right one is āAmerica/Belemā.
config setprop php DateTimezone America/Belem
expand-template /etc/php.ini
It seem the problem is deeperā¦
[root@microserver ~]# config setprop php DateTimezone America/Belem
[root@microserver ~]# expand-template /etc/php.ini
[root@microserver ~]# config getprop php DateTimezone
America/Belem
[root@microserver ~]# config show TimeZone
TimeZone=America/Belem
After a reconnection on the webgui, I still have the three hours of differenceā¦
Did I need to reboot?
Finally, I rebootedā¦
The Dashboard show the āgoodā time for the antivirus updateā¦
But the Disk Usage, still showing the UTC timeā¦
I suppose that config is prefferable to make through WEB UI , firstly set UTC then change to America / Belem and all config would be updated.
Oupsā¦ Forget to return this information:
All is okay in the date and time module
I will try to made a change here when I come back at homeā¦
Good, check the right answer and solve this thread
Noā¦ The problem is only resolve in the Dashboard, not in the disk usage
Press Update on disk usage for changing mtime
Noā¦thatās not work
PS: You can easily imagine that I canāt resist to click on this big red botton
In /usr/share/nethesis/NethServer/Module/Duc.php
if($stat) {
$timestamp = $stat['mtime'];
$date = $this->getPhpWrapper()->gmdate($view->translate('Date_Format'), $timestamp);
}
So what to do? Change āmtimeā by what?
atime
did you reaply Time zone by NS WEB UI ?
Of course ā¦ That is why I put the hands under the hood
show pls
ll /var/cache/duc/
After editing the Duc.php and change mtime by atimeā¦
Nothing newā¦
The Disk Usage module still persist with the UTC time
In /var/cache/duc
thereās only three files:
duc.db
duc.son
tree.xml