bug in localTime