corrected end datetime check and changed log time to time on server when function is run
corrected end datetime check and changed log time to time on server when function is run

ktsuench/real_update,ktsuench/real_update,ktsuench/real_update