Skip to content

date() function went long #1729

@toproplus

Description

@toproplus

Affected Page URL

https://www.php.net/manual/zh/function.date.php

Describe the bug

Today is 2025-12-31, PHP version is 8.2.28

echo date('Y-m', strtotime('-1 month')); // The result is "2025-11"

Steps to reproduce

Today is 2025-12-31, PHP version is 8.2.28

echo date('Y-m', strtotime('-1 month')); // The result is "2025-11"

Expected behavior

Today is 2025-12-31, PHP version is 8.2.28

echo date('Y-m', strtotime('-1 month')); // The result is "2025-11"

Screenshots

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions