fixed the timestamp variable calculation
Merge pull request #9 from Wikinaut/master

fixed the timestamp variables calculation