Como Puedo deshabilitar la opciรณn de adjuntar imagen desde la galerรญa cuando solicito una foto en la ya que la imagen que me deben enviar debe ser en tiempo real ?
Ademรกs como puedo solicitar la hora y que el usuario no pueda alterarla hora real, ya que si se modifica la hora del dispositivo la app toma esta hora o fecha ?
Welcome to the community !
I allowed myself to translate your request, so that anyone can understand it easily (and myself)
Google translate:
1 - How can I disable the option to attach an image from the gallery when I request a photo in it, since the image that should be sent to me must be in real time?
2 - Also, how can I request the time and that the user cannot alter it in real time, since if the device time is modified, the app takes this time or date?
About 1)
You canโt
About 2)
This will set the initial value, to the date/time the user save a form
este no es el problema, si el usuario cambia la hora de su dispositivo manualmente la app arrastra la hora del celular asรญ el usuario puede alterar este campo
Did you uncheck the โeditableโ option ?
si
ponte en el lugar de usuario yo puedo ingresar a ajustes de mi celular ingresar a fecha y hora y colocar la hora que quiera , luego ingreso a la app y monto un registro la app toma la hora del dispositivo no la real
OK, I didnโt get that point specifically.
Then, I suggest that, instead of NOW(), you use UTCNOW() as initial value of your TimeStamp.
Then, if you know for sure that your users are in a specific time zone, you can use this expression to re-create the NOW() equivalent:
UTCNOW() + โ002:00:00โ for France, for example
However, I have no knowledge of the way UTCNOW() is calculated, if it depends of the device used or not.
Maybe @Steve will have a clue on it ?
For reference:
Itโs just NOW()
with the timezone adjustment removed. Itโs as simple as that, no magic. If the user changes the deviceโs time, both NOW() and UTCNOW() will be affected.
There is no way to get the actual time if the user has changed the deviceโs time.
User | Count |
---|---|
42 | |
33 | |
24 | |
23 | |
14 |