[Finish #44608577] Use a better way to parse the local time