Maintain server time even in offline mode (javascript/html5) -


i stuck in design scenario have javascript/html5 based application runs in offline mode. browser based , there crud operations happen.

now when in offline mode maintain server time in application. server time needed crud operations etc

how maintain server time using javascript/html5 when running locally?

note : application contacts server first time , downloads data, can fetch time too.

**

i cannot calculate server time using device's local time because user can change device's time , create fraud entries.

**

you can't, there's no way of stopping users changing time on device , can't contact online server if have no network connection.

if verifiable audit crucial should record time when updates hit server rather attempting record time updates hit device. of course, nothing stopping doing both.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -