android - Cities Daylight saving time database -


i trying database cities , it's corresponding timezone including daylight saving time cannot find it.

i making ios , android application user can choose city or , represents time need data calculate right time.

my current solution use timezone.getavailableids() (id's same android) discovered there lot of cities missing such beijing , abu dhabi. solution?

here can 1 thing. set button in app , add below code in button's action. u can present date , time of location.and u can save information hitting api(webservice of app). -----------------------------------code----------------------------------

nsdateformatter *dateformatter = [[nsdateformatter alloc] init];  nstimezone *gmt = [nstimezone timezonewithabbreviation:@"gmt"]; [dateformatter settimezone:gmt]; [dateformatter setdateformat:@"yyyy-mm-dd't'hh:mm:ss.000'z'"];  nsstring *iso8601string = [dateformatter stringfromdate:self]; 

(nj)


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -