avoid error "global name 'Datastream' is not defined" and use UTC time instead of local