hueniverse/hawk — pull request #110 by MathieuLoutre (2014-04-15 14:38:59+00:00)
Title: Fix time calculation. Stop clearing offset when setting storage.

Hawk was trying to access the local offset from `localStorage` before any storage was set and therefore replaced the previous (correct) value with 0 which makes the next request fail.

Also, the local offset was added to the timestamp in milliseconds although it's in seconds resulting in failing requests even if the offset value was technically correct. I moved all the offset calculations to `hawk.utils.now` so that the division can be done at the right time.