Changed getTime for linux