datetime module: Fix errors when starting up