Help Center/Object Storage Service/PHP SDK Developer Guide (Ally Region)/Troubleshooting/Time Zone Configuration Failure
Updated on 2026-01-16 GMT+08:00
Time Zone Configuration Failure
If an error (such as Uncaught exception 'Exception' with message 'DateTime::__construct():) is displayed when you use OBS PHP SDK for secondary development, the time zone configuration is incorrect. You can configure the time zone using either of the following methods:
- Modify the php.ini file by adding date.timezone =xxx in the [date] tag, for example, date.timezone =UTC.
- Call date_default_timezone_set('xxx') in the program to directly set the time zone.
Parent topic:Troubleshooting
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot
