fix datetime format for refresh