r/ObsidianMD • • 18d ago

help Dates Changing

I'm not sure if this is an issue with the timeline plugin I'm using or an issue with Obsidian itself.

I keep putting the date as 1582-06-21; however, when I close Obsidian and reopen it, the date reads as the 11th. When I click on it, it forces me into a calendar mode, but the 21st (the real date) is highlighted as though it were still recorded properly. When I click on the 20th, the date becomes the 10th in the Properties view. I am using ios.

Does anyone have any ideas on what is causing this and how I might fix it?

11 Upvotes

10 comments sorted by

9

u/ValenciaTangerine 18d ago

Look at the gap: 21 to 11 is exactly 10 days, which is how far the Julian calendar was behind the Gregorian one in 1582. So the file is fine and something in the display is converting the date. My guess is the iOS date picker, since it treats anything before October 1582 as a Julian date. If you only need the date stored as you typed it, change that property's type from Date to Text (tap the property icon) and the picker stops touching it.

3

u/Hundredsspoons0 18d ago

That worked. Thank god. You're a lifesaver!

2

u/Hundredsspoons0 18d ago

Ok, I'll try it. Thanks!

5

u/tobiasvl 18d ago

Not sure how to fix it, but I assume the cause is the switch from the Julian to the Georgian calendar, maybe... That occurred in 1582. Maybe there's a way to fix the "timezone" in the YAML somehow?

1

u/Hundredsspoons0 18d ago

God, I hope that's not the problem. I'm not familiar with YAML since I just started really getting into Obsidian, but I'll try it out. Thank you for the advice!

3

u/endlessroll 18d ago
  1. Do you sync your vault? If so, with what method? If you use two sync services, that’s your problem right there. If not, syncing can still cause files to not update or revert to a previous version. If you use iCloud with Windows in the mix, that’s a potential cause. If you use any third-party sync like iCloud and haven’t set your vault to keep downloaded on the device that’s another potential cause. If your vault is synced and the file is open on two devices at the same time, that’s also a potential cause.

  2. What does source mode say? If you edit the date in source mode, then switch to reading view, then close and reopen Obsidian, is it correct?

2

u/Hundredsspoons0 18d ago

I use Obsidian Sync, but I had only edited and opened the file on my phone. I never even touched my computer, so I don't think there should be previous files to revert to? Or am I misunderstanding how sync works? I'll give your recommendation about source mode a shot.

1

u/Hundredsspoons0 18d ago

Ok, something weird. In source mode, the date is correct. It's 1582-06-21. I didn't have to edit it. But when I switch it back to regular mode, it's still the 11th. What on earth does That mean?

2

u/endlessroll 18d ago

It means it’s a rendering bug. What’s written in the file is what matters. 

It may be caused by some community plugin so try turning them all off and reloading Obsidian. If the date is correct, it’s a plugin, if it still shows up wrong, you might want to report it as a bug in the forum.

1

u/Hundredsspoons0 18d ago

I turned everything off and reloaded. Still there. Probably an issue with vanilla Obsidian then? I'll report it on the forum as you suggested then. Thank you!