Fixed a small error in getTime()