Fix timezone

Use localtime instead of gmt