Skip to content

Refer to time-related constants and intended use.#1584

Merged
andrewnicols merged 1 commit intomoodle:mainfrom
paulholden:MDLSITE-3967
May 6, 2026
Merged

Refer to time-related constants and intended use.#1584
andrewnicols merged 1 commit intomoodle:mainfrom
paulholden:MDLSITE-3967

Conversation

@paulholden
Copy link
Copy Markdown
Member

Copilot AI review requested due to automatic review settings April 30, 2026 12:15
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 30, 2026

Deploy Preview for moodledevdocs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 2543c9a
🔍 Latest deploy log https://app.netlify.com/projects/moodledevdocs/deploys/69f9db3bcc64f000087d9ad4
😎 Deploy Preview https://deploy-preview-1584--moodledevdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds guidance to the Time subsystem documentation clarifying how Moodle’s time-related constants should (and should not) be used when working with relative time, aligning with MDLSITE-3967.

Changes:

  • Introduces a new “Relative time” section describing intended use of time-related constants for UI options.
  • Recommends using PHP \DateTime classes (e.g. \DateTimeImmutable) for relative-time calculations to handle leap years/DST correctly.

Comment thread docs/apis/subsystems/time/index.md
Comment thread docs/apis/subsystems/time/index.md Outdated
@andrewnicols andrewnicols added this pull request to the merge queue May 6, 2026
Merged via the queue into moodle:main with commit 357c240 May 6, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants