Time did not coincide with my timezone

Hello, I’m quite new to SB. When I make a snippet for time {{time}} it does not coincide with my timezone. How to make it work with my machine? Does it have to do with my installation via Orbstack that I need to set first?

Thanks for someone who can point me to the right direction.

time and date use the ISO format, which always uses the UTC timezone, this is not directly configurable. There are ways around it, since you can define custom functions using spacescript that format it differently.

However, now I’m thinking if we should just always use the locally configured timezone? This would then be sensitive to server configuration, which opens its own can of worms.

1 Like

is there a spacescript that is already around?

Thanks Zef for SB. I liked it!

Update: Found it!

Can you link this please?

Not sure if you still need this: Space Script example: Get Current Local Date and Time

1 Like