mysticcoders / voicenotes-sync

A plugin for Obsidian to sync with the VoiceNotes.com service
MIT License
38 stars 1 forks source link

Time Adjustment #30

Open giittyy opened 3 months ago

giittyy commented 3 months ago

Please add an option to put what time zone we are currently in and then adjust the time zone in the meta data and the date prepended in the title accordingly.

Currently Dates are way off because the date is based off 0 time zone.

yoghurtdewdew commented 1 month ago

Wrong time zone in yaml now. Wish same like in voicenotes app.

giittyy commented 1 month ago

Voicenotes also has the wrong timezone though. Honestly that's the bigger issue, but I'll take it if at least its correct in obsidian.

kinabalu commented 1 month ago

so we're talking about 0.20.0-beta has the wrong timezone?

giittyy commented 1 month ago

Yes it's for the beta, but it's only the front matter properties. They're based off 0 time zone instead of switching to local. In the new beta the date which can be used for title and body switches to the local time zone. The best solution would probably be to just open up the front matter in the same way the body of the note is able to be customized now.

yoghurtdewdew commented 1 month ago

I would like to use another obsidian plugin, project, at the same time. I hope I can put my notes on the calendar view through the application of project, so that I can see which notes were created on each date. But at present, the property is text and wrong time zone. After I changed the property of text to date&time, it still cannot be recognized in project. Hope supporting!

yoghurtdewdew commented 1 month ago

Screenshot_20240820_104058.jpg

I remember the saying that this APP voicenotes has originally wrong time zone? But I found that my time zone here is normal. All at the right time, a little difference just from an edit operation after it created.

hjamet commented 1 month ago

I would like to use another obsidian plugin, project, at the same time. I hope I can put my notes on the calendar view through the application of project, so that I can see which notes were created on each date. But at present, the property is text and wrong time zone. After I changed the property of text to date&time, it still cannot be recognized in project. Hope supporting!

Hello yoghurtdewdew!

I'm sorry, I can't reproduce the bug on my end: the dates are in the correct timezone :/

As for the use of the calendar plugin, I don't know which one you're using and it's therefore difficult for me to help. The next update (https://github.com/mysticcoders/voicenotes-sync/pull/42) should add the ability to modify the frontmatter while customizing the date format, which should solve your problem! :)

yoghurtdewdew commented 1 month ago

@hjamet Thank you very much for your reply! Maybe I didn't express myself clearly enough.

I mean, there is no problem with the timestamp in the voicenotes APP itself. But when this note was synchronized to my obsidian, its time was wrong. The time problem mainly lies in the wrong time zone. For example, the picture in my screenshot above is the thread of a note, its parent notes are created at 10:10. But when it was synchronized to obsidian, its creation time became 2:10, a difference of eight hours. It shows that there is an error in the time zone, local time zone or manually setting needed.

image

You can see that I changed the property from text to date & time. But when I created project using project plugin obsidian://show-plugin?id=obsidian-projects , I found that its property was still text, not the date & time that I needed, which could not be showed in the calendar view(plugin is still project).

image
giittyy commented 1 month ago

Correct, so when they change the ability to edit frontmatter you will be able to put it into a time format your other plugin can read.

In regards to the app. I said that it was wrong because it was going off 0 time zone for a long time in the app. It no longer does that.

Thanks for your continued work on this

yoghurtdewdew commented 1 month ago

I updated this plugin and found that all time property of notes became 00:00.

image
kinabalu commented 1 month ago

what is the value in your settings for dateFormat?

yoghurtdewdew commented 1 month ago

@kinabalu Thanks for your pointing out for this! Now time would show in property.