localtime not working, removed temp