added the condition for curtime hour for dms module