fix datetime.now call