I got back to it now. Still not working...
- Divided by 1000.
- Changed the clock to Pacific time
- rounded using either parseInt, Math.round and Mouth.ceil
All failed.