You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using YAML Front Matter / Obsidian Property created: to set a static value when the file was created like this:
test: {{date:YYYYMMDDHHmm}}
Based on moment.js format, I expect this value to translate to YYYYMMDDHHmm, e.g. 202408200954 if the file was created on 2024-08-20 (year-month-date) at 09:54 (local time).
Finding
When using Periodic Notes and e.g. the moment.js template mentioned above (also seen in the screenshot below), I'm getting different values (e.g. different days), based on what note type I create; where I expect the template value to be identical (based on the template and moment the note is created). Does Periodic Note override the moment.js template values, somehow - for inline data?
To reproduce
Create a template to be used for all note types, using the moment.js value of {{date:YYYYMMDDHHmm}} as variable.
Set the template to be used for all note types.
Create new notes for daily, weekly, monthly, quarterly and yearly (all based on the very same template)
Notice different moment values, even though it's created within the same "moment" using the same template.
Example
All notes created at 2024-08-20 on 09:54 (local time)
Value for weekly is converted to last sunday (2024-08-18)
Value for monthly get converted to first day of the month (2024-08-01)
etc.
template and resulting notes, all created within the same minute.
(default settings, just enabled all note types, and used same template)
Other
Timestamp seems to be correct, the "overrides" seems to be limited to dates (maybe more, I haven't tested every combination from moment.js docs).
Debug info
SYSTEM INFO:
Obsidian version: v1.7.0
Installer version: v1.6.5
Operating system: Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 23.5.0
Login status: logged in
Catalyst license: supporter
Insider build toggle: on
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 1
Plugins enabled: 1
1: Periodic Notes v0.0.17
The text was updated successfully, but these errors were encountered:
Background
I'm using YAML Front Matter / Obsidian Property
created:
to set a static value when the file was created like this:Based on moment.js format, I expect this value to translate to YYYYMMDDHHmm, e.g.
202408200954
if the file was created on 2024-08-20 (year-month-date) at 09:54 (local time).Finding
When using Periodic Notes and e.g. the moment.js template mentioned above (also seen in the screenshot below), I'm getting different values (e.g. different days), based on what note type I create; where I expect the template value to be identical (based on the template and moment the note is created). Does Periodic Note override the moment.js template values, somehow - for inline data?
To reproduce
{{date:YYYYMMDDHHmm}}
as variable.Example
All notes created at 2024-08-20 on 09:54 (local time)
template and resulting notes, all created within the same minute.
![image](https://private-user-images.githubusercontent.com/9432339/359390062-95af19f6-4067-48df-bf37-b02f7e8fa6bc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NzEwNTQsIm5iZiI6MTczOTQ3MDc1NCwicGF0aCI6Ii85NDMyMzM5LzM1OTM5MDA2Mi05NWFmMTlmNi00MDY3LTQ4ZGYtYmYzNy1iMDJmN2U4ZmE2YmMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTNUMTgxOTE0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MDY5MzJjNWQ3ZTkzMzBhOTI0M2NiNjFlYTFkNjEzODc4YzdhZDk5YjA5YzMwY2JlYzhkMWRlMGUxYTIwNDE1ZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.kCbuQcFeb3w__fi-Ivbjs0KKqftYSFYFNLltrV-_fOU)
(default settings, just enabled all note types, and used same template)
![image](https://private-user-images.githubusercontent.com/9432339/359397011-b476bd94-5ff1-422b-bc4b-115548ce1cd6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NzEwNTQsIm5iZiI6MTczOTQ3MDc1NCwicGF0aCI6Ii85NDMyMzM5LzM1OTM5NzAxMS1iNDc2YmQ5NC01ZmYxLTQyMmItYmM0Yi0xMTU1NDhjZTFjZDYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTNUMTgxOTE0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTJjZTA1Yzk5ODE4MTc3YzQ0ZTUxMzlhMWZmYTc4NTAxZGQ3ZTlmOThhMDEzOGFhYjc4YTgyMjUwMDZmZjVlYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.Wht4gS-Flp-v86i2k34xsRfygJmDaXfNgkMgAorkbVU)
Other
Debug info
SYSTEM INFO:
Obsidian version: v1.7.0
Installer version: v1.6.5
Operating system: Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 23.5.0
Login status: logged in
Catalyst license: supporter
Insider build toggle: on
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 1
Plugins enabled: 1
1: Periodic Notes v0.0.17
The text was updated successfully, but these errors were encountered: