%m -> %M for minute
https://gitlab.com/ase/ase/-/blob/master/ase/io/dmol.py#L83
https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes
f.write('!DATE %s\n' % dt.strftime('%b %d %H:%m:%S %Y'))
should probably be
f.write('!DATE %s\n' % dt.strftime('%b %d %H:%M:%S %Y'))