lsc icon indicating copy to clipboard operation
lsc copied to clipboard

DateUtils.format does not seems to manage timezones

Open coudot opened this issue 2 months ago • 0 comments

Hello,

I use this code to have the LDAP formatted date of current time:

DateUtils.format(new java.util.Date());

My server is on Paris CET time. If i run the code on 6 November 2025 at 17h30 (Paris CET time), I get LDAP date 20251106173000.000Z instead of 20251106163000.000Z

coudot avatar Nov 06 '25 16:11 coudot