There is already a better answer to this question, but in case someone needs an easier way, here's what I did.
Get server time using an API or network call in which the response will have a timestamp from the server. Use the data according to your convenience.
You can modify the existing API, if any.
athira09 May 16 '19 at 6:24 2019-05-16 06:24
source share