added option for 24-hour time format