Use localtime instead of gmtime and timezone calc