Fixed bug in year printing for watchdog file