Rule from 12am 6am

When I create a rule with time it won’t save a setting from 12:00 am to 6:00 am. I can change and select save but it always reverts to 6:00 on.