support for weird formatting of time