Templates: {{Date}} produces time

Steps to reproduce

  1. Setup the Templates core plugin.
  2. Make a template containing {{Date}} and {{DATE}}.
  3. Trigger the template.

Expected result

Each template tag should be replaced by the date.

It wouldn’t shock me if these capitalizations aren’t intentionally supported, but {{Time}} and {{TIME}} seem to work correctly (I didn’t test with custom formats). Also it’s nice to support at least the first one to accommodate autocorrect behavior.

If the capitalizations aren’t supported I’d expect to see the template tags reproduced as they were typed.

Actual result

Both tags are replaced by the time.


Operating system: ios 16.3.1 (Apple iPad)
Obsidian version: 1.4.3 (95)
API version: v1.1.16
Login status: logged in
Catalyst license: none
Live preview: on
Legacy editor: off
Base theme: adapt to system
Community theme: none
Snippets enabled: 20
Restricted mode: on

Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.

Additional information

Discovered via a help request on Discord.

ok, thanks

will be fixed v1.2.4

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.