`os.date("%V")` returns the wrong week number

Right now it is 2025-05-05, the 19th week of the 2025. Yet you can try

${
os.date("%V")
}

And you get 18.

1 Like

I think this was fixed here: Fix week calculation by lochel · Pull Request #1368 · silverbulletmd/silverbullet · GitHub

1 Like

I’ll update my instance. Thanks Zef!

1 Like

I’ve made the update and still not working yet. Have you tried on your instance?

1 Like

It returns 19 for me.

2 Likes

Now it returns 19 for me after I 1) wiped the client 2) refresh the widget.

Maybe there are some caching mechanism on the offline mode that you need to refresh on deeper level.

Thanks for the fix BTW!

1 Like

To get new client files you always need to reload twice. No wipes required, just reload a few times (slowly).

1 Like

Nice to see this is fixed, I had also noticed this and even prototyped a fix but never got around to actually integrating it into Silverbullet.

1 Like