I'm trying to format a DateTime to 24 hour time but it displays the wrong time between midnight and 1 AM.
String created = Datetime.now().formatGMT('yyyy-MM-dd\'T\'kk:mm:ss.SSS\'Z\'');
shows 2017-06-02T24:55:41.319Z
for 12:55 AM instead of 2017-06-02T00:55:41.319Z
. Is there a way to get it to display the correct time without modifying the string?