Time Zone support with dates

Got an idea for enhancing SpiderBasic? New command(s) you'd like to see?
User avatar
SparrowhawkMMU
Posts: 281
Joined: Wed Aug 19, 2015 3:02 pm
Location: United Kingdom

Time Zone support with dates

Post by SparrowhawkMMU »

It would be nice of SB offered a way to do basic timezone handling such as

getting current timezone
converting a date/time between timezones
getting current UTC offset

I've just hit a situation where the database which my API retrieves data from and sends to the SB front end is in UTC, including the auth token expiry time. The UK has just moved one hour ahead so my auth tokens are now out of date as soon as they are created.

I am looking at a JS solution for now to get the current UTC offset and do the expiry check based on that, but a native solution would, as ever, be preferable