I am at Australia and the time now is 13:00 Feb 1. With the following code:
DateTime thisTime = DateTime.now(); System.debug(thisTime); System.debug(thisTime.format('DD/MM/YYYY HH:mm'));
For the 2nd line I got 2016-01-01 03:22:04 which is correct. But for the 3rd line(the format one) I got 32/02/2016 + time. Is that a Salesforce bug? Any known issues or walkarounds?