fix datetime.now issue