dolibarr icon indicating copy to clipboard operation
dolibarr copied to clipboard

wrong timezone / timestamp in log

Open scaleo-hds opened this issue 2 years ago • 1 comments

Bug

The timezone handling is wrong. In all my timestamps php shows me times 2 hours earlier than done. (Europe/Berlin). But when I check logs, then the timstamp is 2 hours later then the real time I did the modifications.

Environment Version

V 15.0.3

Environment OS

windows 10

Environment Web server

standard windwos installation package

Environment PHP

7.3.33

Environment Database

maria

Environment URL(s)

No response

Expected and actual behavior

best would be: dolibarr uses the real server time.

Steps to reproduce the behavior

No response

Attached files

No response

scaleo-hds avatar Sep 19 '22 20:09 scaleo-hds

Have you checked your timezone setting in php.ini ?

trekmorris avatar Sep 21 '22 13:09 trekmorris

yes. I did a double check and found out there is a wrong written comment line: ; date.timzeone = Europe/Paris I have activated this line, but with the wrong written name timzeone I corrected that now, but I have to check the logfile entries.

Is it possible to set this value within the dolibarr environment? This would be the most comfortable way.

scaleo-hds avatar Sep 21 '22 21:09 scaleo-hds

@scaleo-hds

If you want this function , i think you will need create a feature request for this .

trekmorris avatar Sep 22 '22 12:09 trekmorris

OK, I will create a feature request. But the wrong written name was not my mistake. I only reactivated a commend, which is in php.ini (line 686 +/- 2lines) .

If the "date.timezone" is written correctely, it works fine.

scaleo-hds avatar Sep 23 '22 11:09 scaleo-hds