PB with timezone in the dashboard and antivirus update

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 :wink:

Noā€¦ The problem is only resolve in the Dashboard, not in the disk usage

Press Update on disk usage :slight_smile: for changing mtime :wink:

Noā€¦thatā€™s not work

PS: You can easily imagine that I canā€™t resist to click on this big red botton :laughing:

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 :anguished: :grin:

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 :alien:

In /var/cache/duc
thereā€™s only three files:
duc.db
duc.son
tree.xml

Ls -l to show mtime or stat to find out modification date

ls -l
total 2596
-rw-rā€“r--. 1 root root 2636288 Oct 17 15:25 duc.db
-rw-rā€“r--. 1 root root 7028 Oct 17 15:25 duc.json
-rw-rā€“r--. 1 root root 7485 Oct 17 15:25 tree.xml

when the disk usage module show 18:25

and show please

less /etc/php.ini

Yesterday I had the opportunity to deploy one more Nethserver instance.
On the fresh installation, when going in the Disk usageā€¦ The showing time was in localtime, was ok.

After, clicking on the update butonā€¦ The time was in UTC, was wrong. Itā€™s in the code behind the update buton that thereā€™s a divergence between localtime, timezone and UTCā€¦

Oh no !!!
I have exactly the same issue with a new fresh install:


The timezone is not well adjustedā€¦there a diference between the General information and the Antivirus update

Iā€™d just realigned with

Config setprop DateTimezone America/Belem

And

Expand-template /etc/php.ini

Is the first configuration wizard isnā€™t doing this correctly?

show , what inside

[PHP]


;
; 10base
;
short_open_tag = 0
expose_php = 0
max_execution_time = 30
memory_limit = 32M
post_max_size = 8M
upload_max_filesize = 2M 
date.timezone = "America/Belem"

It look correct

@Nas
If you permit, I will rename this thread "Pb with the timezone in the Dashboard and antivirus update"
And mark as solved with the @giacomo answer.

Two others threads was open

  • for the Disk usage module.
  • For the Time Zone not set properly by the wizard assistant.

It will be clearer for futures readers. :smiley:

1 Like