Deze pagina is nog niet beschikbaar in uw eigen taal. We werken er hard aan om meer taalversies toe te voegen. Bedankt voor uw steun.

On this page

Show all

Help Center/ Object Storage Service/ SDK Reference/ PHP/ Troubleshooting/ Time Zone Configuration Failure

Time Zone Configuration Failure

Updated on 2023-03-16 GMT+08:00

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:

  1. Modify the php.ini file by adding date.timezone = xxx in the [date] tag, for example, date.timezone = UTC.
  2. Call date_default_timezone_set('xxx') in the program to directly set the time zone.
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback