Dolibarr / dolibarr

Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
https://www.dolibarr.org
GNU General Public License v3.0
5.29k stars 2.74k forks source link

wrong timezone / timestamp in log #22330

Closed scaleo-hds closed 2 years ago

scaleo-hds commented 2 years ago

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

trekmorris commented 2 years ago

Have you checked your timezone setting in php.ini ?

scaleo-hds commented 2 years ago

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.

trekmorris commented 2 years ago

@scaleo-hds

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

scaleo-hds commented 2 years ago

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.