cristianvasquez/obsidian-prettify

Get some puzzling time formatting with header templates

Closed this issue · 0 comments

first ,thanks for your work , obsidian-prettify is very useful to me.

i try header template,most time it work well.but some times there is some weird result.i am not sure it is a bug or a feature.

template:

  • updated: {{date:YYYY-MM-DD}} -> updated: 2021-09-11T00:00:00.000Z
  • updated: '{{date:YYYY-MM-DD}}' -> updated: '2021-09-11'
  • updated: {{date:YYYY-MM-DD hh:mm:ss}} -> updated: 2021-09-11T08:58:13.000Z

i has search 'T00:00:00.000Z',it look like a part of ISO-8601 date representation.

i has never use js, how could i use "updated: {{date:YYYY-MM-DD hh:mm:ss}}" get the result "updated: 2021-09-11 09:00:28"