Deprecate and remove usages of datetime_date_default_time().

Created on 23 November 2016, over 7 years ago
Updated 12 September 2023, 9 months ago

Problem/Motivation

The datetime module has one function it it that isn't a hook: datetime_date_default_time(). This function should not exist.

Proposed resolution

1. @deprecate it with the proper trigger_error().

2. Create a ::setDefaultDateTime() method on DateTimePlus that objects can use for date-only representations.

Remaining tasks

.

User interface changes

None.

API changes

datetime_date_default_time($date) is @deprecated

Use $date->setDefaultDateTime() instead.

Data model changes

πŸ“Œ Task
Status

Fixed

Version

8.5 ⚰️

Component
DatetimeΒ  β†’

Last updated 4 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States mpdonadio Philadelphia/PA/USA (UTC-5)

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024