Help Center/ Object Storage Service/ SDK Reference/ PHP/ Troubleshooting/ Time Zone Configuration Failure
Updated on 2022-09-07 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
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank 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