Open ZakariaJawas opened 5 years ago
I too am looking for this. Basically was looking for a way to supply a timezone to the TrueTime library so that even if the device time/timezone is changed, we can still get the correct time in the desired timezone.
@kaushikgopal , any thoughts on it?
Its too late, but if you are using Java 8 and above you can follow this link - https://mkyong.com/java/java-convert-date-and-time-between-timezone
Note The java.util.Date has no concept of time zone, and only represents the number of seconds passed since the Unix epoch time – 1970-01-01T00:00:00Z. But, if you print the Date object directly, the Date object will be always printed with the default system time zone.
Is it possible to force TrueTime to get time in a different timezone the phone is configured with