Use DateTime instead of date()

On 32bits systems, date() is affected bug the 2038 bug
DateTime always uses 64bits representation

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>