From what I've read it sounds like the 24 hour thing is a custom or tradition rather than an Islamic edict (or whatever it would formally be called).