Doubts about dates

0
Hi, I have an application that uses a lot of dates. There are certain things that the user can't do if it hasn't been more than a week yet. I noticed that if you change the dates on the computer, it also changes the current date of the application, therefore, I would have no control over those things that I am limiting. Is there any way to prevent this? Thank you.
asked
2 answers
0

Hi David Salazar,

                              This is because in your entity you might have selected the localize Time option to the Date and time attribute , this will take your system date and time for current date and time[system variable]. to have a control, uncheck the option in entity and select the time zone for the user during the creation of user and now it will be fine for your case..

I hope it helps..

 

answered
0

Yes, there are ways to prevent users from manipulating the date on their computers and thereby bypassing the date-based restrictions in your application.

  1. Use server-side date and time: Instead of relying on the date and time on the client-side, use the date and time on the server-side. This way, the date and time used in the application will not be affected by changes to the client-side clock.

  2. Use a timestamp: Instead of relying on the date alone, use a timestamp that includes both the date and time. This way, even if the user changes the date on their computer, the timestamp will still accurately reflect the actual date and time.

answered