Fixed an issue in getNiceTime method of TimeFormat class