3

I am developing an android app in ionic 2, is there a way I can determine if the time that I am getting is network provided or if the time was set manually.Please check the screenshot below

Thanks!

  • 1
    This is an interesting question. Have you verified that the time is the "manual time" when configured that way? I find it hard to believe that is possible. – Philip Brack Oct 24 '17 at 16:19
  • @PhilipBrack you are right, I am unable to do that. – Abhay Naveen Oct 25 '17 at 10:20
  • so in other words it appears that the browser time is coming from the network regardless of that setting? – Philip Brack Oct 25 '17 at 14:48
  • if I use new Date( ), I get the time. I would want to differentiate if the time was set manually or if the time was set by the network. Thank You – Abhay Naveen Oct 25 '17 at 16:18
  • I do not know the direct answer but you can do a walk around by getting time from your server or some API and compare with time in your app – Duannx Oct 26 '17 at 02:19
  • @Duannx, working on an attendance app(which works offline and syncs attendance when connected to internet), there is a possibility that the user will manipulate time take an attendance and just before sync sets network provided time. Making it impossible for me to determine if the attendance was genuine. Thanks for the suggestion. – Abhay Naveen Oct 27 '17 at 06:15

0 Answers0