Deprecate and remove usages of datetime_date_default_time().

Created on 23 November 2016, about 8 years ago
Updated 12 September 2023, about 1 year 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 3 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.71.5 2024