I want to use this packet to work with cookies in my web app
https://github.com/js-cookie/js-cookie
In my web app my task is to extend the expire time (15 minutes) of cookie when user is do some actions. To extend the expire time I use this guide:
My question is, does this code, that use getTime() function (return time always in UTC) correct work with users what use another time zone?
For example if user have CST time zone (different by 6 hours of UTC), the cookie is expired correct (15 minutes) or not (6 hour 15 minutes)? If not, have you any ideas how to improve this code? Thanks.