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.
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.
For any further questions, feel free to contact us through the chatbot.
Chatbot