php / php/doc-en

[Docs] Improve function.date-default-timezone-get.php

Open
#4,562 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
XML
Stars
596
Forks
890
Avg merge
1d 15h
Merged PRs (30d)
55

Description

Affected page

https://www.php.net/manual/en/function.date-default-timezone-get.php

Current issue

When date.timezone is undefined date_default_timezone_get() return a different value regarding version used.

Suggested improvement

When date.timezone is undefined date_default_timezone_get() return :

  • UTC only if php version >= 8.2
  • current server timezone if php version <=8.1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the affected page at https://www.php.net/manual/en/function.date-default-timezone-get.php and review the section describing behavior when date.timezone is undefined. Update it to distinguish PHP versions before 8.2 from PHP 8.2 and later, with the documented return values. Done means the page clearly states both version-specific outcomes.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.