Reduced datetime manipulation when setting the cookie
Merge pull request #18 from Ninir/fix-datetime

Reduced datetime manipulation when getting the cookie