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
{{ message }}
Repository navigation
[My Daily Log] Fix timestamp for entries to zero-padded minutes/seconds #5355
Current version of the extensions inserts timestamps without extra formatting, which leads to strange looking strings like 9:1:5 (instead of 9:01:05 or 09:01:05).
I fixed it at my local fork by adding .toString().padStart(2, '0') to minutes and seconds in the getHourAndMinute(), but maybe there's a better way.
It would be ideal if the string formatting was customizable (time/date separators, seconds or no seconds, markdown decorations like italic/bold, separator between the timestamp and the entry text itself). But having correct minutes/seconds formatting is the major fix for the daily use.
Hey @urbansheep, I think you may be talking about the format in the file itself!
I've rewritten the entire thing to store json now, so that more data can be stored in an easier to manage way. This changes should help with what you describe!
Well, switching over to json definitely makes it more flexible (and solves the issue with formatting), but now daily log became raycast-bound.
Previous approach (appending a line to markdown file) allowed me to use it as way to update my daily log in the Obsidian vault. It seems I will have to find another way to manage this if I don't want to edit daily log json file by hand (and I don't).
Activity
raycastbot commentedon Mar 14, 2023
Thank you for opening this issue!
🔔 @frugoman you might want to have a look.
💡 Tip: Once the issue is resolved, comment
@raycastbot close this issueto close it.frugoman commentedon Mar 15, 2023
@urbansheep Hi! thanks for raising this! could you attach a screenshot? I do not see that behaviour on my end
frugoman commentedon Mar 15, 2023
Hey @urbansheep, I think you may be talking about the format in the file itself!
I've rewritten the entire thing to store json now, so that more data can be stored in an easier to manage way. This changes should help with what you describe!
#5389
stay tunned to it being merged soon!
urbansheep commentedon Mar 20, 2023
Well, switching over to json definitely makes it more flexible (and solves the issue with formatting), but now daily log became raycast-bound.
Previous approach (appending a line to markdown file) allowed me to use it as way to update my daily log in the Obsidian vault. It seems I will have to find another way to manage this if I don't want to edit daily log json file by hand (and I don't).