Changed time.localtime to return proper date

time.localtme would always return current date. This resulted in odd
behaviour when using datetime.datetime.fromtimestamp and
datetime.date.fromtimestamp
Merge pull request #34 from Darkade/feature/time.js

Changed time.localtime to return proper date