Closed froses closed 3 months ago
thanks for the report! there's a few things to unpack here:
slurped
template settings were indeed being ignored. it's a unique property in that it is only ever using the default and default values weren't run through format parsing. the fix for that will be in the next release.d|YYYYYYY-MM-DD HH:mm
doesn't seem like a valid format. Years typically have 1, 2, or 4 Y
s. this format string will yield a result like +0020242024-05-19 12:31
. though if that's what you're after then nevermind!slurped
value is my local time but it's GMT on my windows machine. obsidian complicates matters further. if you set the slurped property to a date type in obsidian it will attempt to format it according to obsidian's settings. i spent a lot of time trying to manage those differences early on. i gave up in the end though since so much of it is client specific and it's somewhat tangential to the goal of slurping pages. i would instead recommend playing with the format template (eg: adding Z
to the template to indicate that it's a GMT time and letting Obsidian format it accordingly, or using the L
and LT
format strings to tell Moment to use locale specific formats).thanks again for the report, i should be able to publish an update later today with the template fix in it. let me know if you still have trouble with it after updating.
Hi,
Sorry d|YYYYYYY-MM-DD HH:mm
is a typo…
And yes, time zones are a headache. I will follow your advice. Thank you so much.
Thanks!
FRA
no problem! keep your eyes peeled for that update. i have one or two other things to put into this release but it'll be out soon. i'll leave this issue open until it's out and you have a chance to test it
I’ll try it as soon as possible.
Thanks a lot!
FRA
El 20 maig 2024, a les 22:43, Shaun Martin @.***> va escriure:
no problem! keep your eyes peeled for that update. i have one or two other things to put into this release but it'll be out soon. i'll leave this issue open until it's out and you have a chance to test it
— Reply to this email directly, view it on GitHub https://github.com/inhumantsar/slurp/issues/33#issuecomment-2121175202, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6VTSL6KY2H4M26WQW4HNLZDJN6VAVCNFSM6AAAAABH6FVDI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRRGE3TKMRQGI. You are receiving this because you authored the thread.
sorry that took so long to release! should be fixed in 0.1.12
Hi, Shaun,
Thanks a lot!
Francesc
El 8 juny 2024, a les 17:42, Shaun Martin @.***> va escriure:
sorry that took so long to release! should be fixed in 0.1.12
— Reply to this email directly, view it on GitHub https://github.com/inhumantsar/slurp/issues/33#issuecomment-2156080960, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6VTSMMEFR4HZU4NGAPUTTZGMQ6BAVCNFSM6AAAAABH6FVDI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGA4DAOJWGA. You are receiving this because you authored the thread.
Hi,
The template does not seem to apply to the “slurp” property. My template is
d|YYYYYYY-MM-DD HH:mm
but Slurp generates2024-05-19T08:21:08.450Z
. Furthermore, the time is not correct either. At the time of the capture, it was 10:21. I guess it doesn't consider my time zone (Spain) which is GMT +2.Thanks for your excellent work!
FRA