changed clock to localtime