Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get timezone by country code jquery

I try to build weather service. Country name that I got from main server came in code format (Like US, UK, CA, etc.) Based on that server info I need to get local time zone by city name. I found Moment js Timezone, but there they using full name of country, so I need to convert country code to full country name or get time zone by city name in other way. Any ideas how to do that?

like image 341
Vasyl Kozhushko Avatar asked Jan 29 '26 17:01

Vasyl Kozhushko


1 Answers

this plugin maybe help you...

https://github.com/scottwater/jquery.detect_timezone

like image 100
Farhad Enayati Avatar answered Jan 31 '26 07:01

Farhad Enayati