Re: [go-nuts] Timestamp issues

2017-09-15 Thread Marvin Renich
* xana...@gmail.com [170915 12:33]: > Yes, I have also tried this on separate devices and some were off and some > were exact to the second so this is definitely a frontend therefore > javascript issue and not an issue with golang. Not sure how to fix it but > this is not a question for golang-

Re: [go-nuts] Timestamp issues

2017-09-15 Thread Marvin Renich
* xana...@gmail.com [170915 03:16]: > No the clients are connected to this app through websockets, they are using > javascript, following snippet is used to make the countdown: > let timeLeft = Math.ceil(((timestamp * 1000) - new Date().getTime()) / 1e3) Okay, so the clients are on different mac

Re: [go-nuts] Timestamp issues

2017-09-14 Thread Marvin Renich
* dr.ink [170914 10:26]: > Hello, I have an issue with generating timestamps in golang, this is how my > app works. First the app generates the timestamp like this > > timestamp := time.Now().UTC().Add(time.Second * > time.Duration(settings.TimeToLive)).Unix() > > this value is then added to s