added support for 12/24h style