I have a cron job running on a Rails server. This rake function makes calls / SMSs for subscribers when an event is triggered. Now that this event runs from 10pm to 8am, I want to keep it in line since no one likes to worry in the middle of the night. How to check if the time is between 10:00 - 8:00.
Note. Each user has his own time zone .. What is in my database
thanks
source share