Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error parsing date.timezone (php.ini) #16939

Closed
2 tasks done
eduardomozart opened this issue Apr 16, 2024 · 2 comments
Closed
2 tasks done

Error parsing date.timezone (php.ini) #16939

eduardomozart opened this issue Apr 16, 2024 · 2 comments
Labels

Comments

@eduardomozart
Copy link

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Version

10.0.14

Bug description

When setting the date.timezone PHP directive like this:

[Date]
date.timezone = America/Sao_Paulo ; // https://www.php.net/manual/pt_BR/timezones.php

And setting up GLPI on a new database, the following error is thrown:

Relevant log output

[2024-04-16 12:42:14] glpiphplog.WARNING:   *** PHP Warning (2): date(): Invalid date.timezone value 'America/Sao_Paulo ; // https://www.php.net/manual/pt_BR/timezones.php', we selected the timezone 'UTC' for now. in /home/robertinho/public_html/glpi/src/Session.php at line 236
  Backtrace :
  src/Session.php:236                                date()
  install/install.php:519                            Session::start()
  public/index.php:82                                require()

Page URL

https://glpi.example.com/install/install.php

Steps To reproduce

  1. Start a new GLPI installation with a new (clean) DB.

Your GLPI setup information

No response

Anything else?

Doesn't matter if string is quoted or not (e.g. 'America/Sao_Paulo'), the same error is being thrown. If double quoted (e.g. "America/Sao_Paulo"), a "500 Internal Server Error" is thrown.

@trasher
Copy link
Contributor

trasher commented Apr 16, 2024

This issue is system side, not related to GLPI.

Copy link
Contributor

This issue has been closed as we only track bugs here.

You can get community support on forums or you can consider taking a subscription to get professional support.
You can also contact GLPI editor team directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants