Creation time set to Unix epoch
Creation time for a new note is always set to 1970-01-01 05:30:00
Updated time is set correctly, both at the first time and on every periodic update.
Date format in the plugin is yyyy-MM-dd HH:mm:ss
Plugin version: 2.4.0 Obsidian version: 1.6.3 OS: Ubuntu 22.04
If you need more logs, please tell me how to collect them
Looks like the filesystem isn't reporting the ctime:
$ stat Craftsman.md
File: Craftsman.md
Size: 428 Blocks: 24 IO Block: 4096 regular file
Device: 4fh/79d Inode: 1443934 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 1000/ user) Gid: ( 1000/ user)
Access: 2024-06-23 12:20:23.997869716 +0530
Modify: 2024-06-23 12:20:23.993870697 +0530
Change: 2024-06-23 12:20:23.993870697 +0530
Birth: -
The mountpoint is a ecryptfs on top of a btrfs:
$ mount | grep home
/dev/nvme1n1p9 on /home type btrfs (rw,relatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/)
/home/.ecryptfs/<user>/.Private on /home/<user> type ecryptfs (rw,nosuid,nodev,relatime,ecryptfs_fnek_sig=<redacted>,ecryptfs_sig=<redacted>,ecryptfs_cipher=<redacted>,ecryptfs_key_bytes=<redacted>,ecryptfs_unlink_sigs)
Would it be possible to default to the value of the first update time on a new note when the filesystem stat() doesn't return a valid ctime?
Related: https://forum.obsidian.md/t/linux-creation-date-of-all-notes-is-1970-01-01-read-birth-date-properly/13761/18
I had this same issue under Linux Mint although the date was set to 1969 for me.
created: 1969-12-31 17:00
modified: 2024-07-11 13:08
In my case, my vault is stored on my NTFS data partition that I use for Windows 10. I just installed Mint 2 days ago and wanted it to use the same vault I am using under Windows but in Linux if I view a notes file properties everything is correct except for the creation date which is unknown. I then copied the vault over to my documents folder in Linux and this set the creation date for all the files in the properties to todays date. However, the created date in the frontmatter is not altered by this plugin as it already exists. So long as I don't remove the existing created: {date} it will stay as it is. Newly created files now do set the created date correctly. Just need to figure out a way to sync the 2 vaults without messing up the dates now.
On a side note: The modified date never updates for me on edit. It will update if I close the note after editing then re-open the note. This behavior happens for me on both Windows and in Linux. Not sure why this is happening???
Edit: I can get it to update without closing the file by editing the current modified frontmatter. Just typing a single character after the date/time is enough to trigger the update which replaces the character I typed and the the date/time is correctly updated. Editing anything else in the notes body or frontmatter never triggers the update.