Move print_date function to new thread and make it update only if date changes