PHP error category

Date & Time

Timezone and date processing.

Date & Time errors arise when timezone and date processing affect an executing PHP application or its supporting service. Use the exact signature and runtime context to narrow the cause before changing configuration.

The guides in this category separate code defects from environment differences, show focused diagnostics, and favor site-scoped corrections that preserve unrelated applications.

Guides in this category

Title Pattern Severity
DateTime failed to parse time string Exception: Failed to parse time string (%s) at position %d error
It is not safe to rely on system timezone Warning: date(): It is not safe to rely on the system's timezone settings warning

Helpful tools