Replace gmtime with localtime.