I updated my templates to include the time zone in valid ISO 8601 format. I’ve tested various valid ISO 8601 formats for file naming and frontmatter. Some of them parse correctly by Obsidian, while others do not.
Obsidian doesn’t seem to support valid ISO 8601 with time zone offset and doesn’t support UTC date and time (UTC±0000).
I don’t want to be a time cop … however, if it doesn’t support all variations of the standard then it doesn’t actually support the ISO 8601 international standard.
And unless I’m missing something, it definitely doesn’t seem to handle UTC.
But yes, that template would insert the local date/time (not the UTC one)…
At least, that’s what it does for me
I think that if you want to insert a UTC date/time + offset in YAML/Properties, you might need a plugin able to call and manipulate moment() directly (Templater and/or other plugin providing “scripting” feature). Properties might not display the corresponding local date/time though (I mean, it’ll still display the UTC one it’ll find in Source).
Part of the reason for not wanting dashes and colons is to match the filenames, dashes are obviously supported across filesystems, colons aren’t.
Plus these examples are definitely standards compliant.
FWIW, having the filename and frontmatter in the YAML/markdown be the same makes copying and pasting, searching, all much easier without needing another step in the process.
@WhiteNoise thanks, I realize this. It’s the processing of the templates that’s broken. If we don’t change or fret over the property type being Date/Date & time instead of Text, then it’s less of an issue–more of a UX thing. Though test4 above is an oddball with the time processing incorrectly.
@Pch it doesn’t display a syntax error for all the errors. Only the first occurring syntax error.
Obsidian just doesn’t seem to know how to correctly process timezone offsets correctly, including for UTC according to the full ISO 8601 standard: