Fix schedule time

a bug while converting datetimes, which was based on 12 hours clock