core: fix datetime conversion of date tuples (without time)