The DATETIME(n) values generated by a MariaDB 10.0 server were not interpreted correctly as the wrong algorithm was used to extract the values. DATETIME(0) values still do not work properly and they require further debugging and changes to the code.