'Date' token namespace is ambiguous

Created on 15 October 2010, almost 15 years ago
Updated 15 July 2025, about 18 hours ago

We provide [current-user:] token type to go along with the [user:] token type. Currently our [date:] tokens actually mean "The current date" while the description simply says "Tokens related to times and dates." which is ambiguous. It is a small bug fix to add a [current-date:] token type and make the [date:] tokens require input and not just work with the current date.

πŸ“Œ Task
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

token system

Created by

πŸ‡ΊπŸ‡ΈUnited States dave reid Nebraska USA

Live updates comments and jobs are added and updated live.
  • stale-issue-cleanup

    To track issues in the developing policy for closing stale issues, [Policy, no patch] closing older issues

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.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Thank you for creating this issue to improve Drupal.

    We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.

    Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.

    Thanks!

  • πŸ‡¨πŸ‡­Switzerland berdir Switzerland

    This is still technically an issue, although token has provided a current-date token for ages.

    I'm not 100% sure it's worth fixing, especially the part about requiring a date for date tokens as that's a BC break and even with BC layers would be quite hard to deal with as tokens tend to be used all over the place in config and content.

Production build 0.71.5 2024