Is there any way to find the requesting hour of the user irrespective of the user zone specified in the user's timezone.
Eg: I have a scenario like few users are requesting from India, where as some users are requesting from USA and some other from different timezones. So i want to restrict the users not to request after 3pm of their respective timezones.
System.now().hour() is returning the local time zone of the context user, but all the context user timezone is set to IST timezones. Is there any way to find the user's respective requesting hours.
And also anyone can please help how to restrict like 3:05pm is also after 3pm but as per my current logic(System.now().hour() > 3) will ignore this. can anyone help how to handle it along with the above scenario.
Is there any way of the similar logic where to know the weekday irrespective of the locale it will return whether it is weekday or weekend. Math.mod(monday.daysBetween(dateValue), 7)