How to get timezone location from time zone in angularjs. I have a time zone like this GMT+5:30 i want the location name Asia/Kolkata.
            Asked
            
        
        
            Active
            
        
            Viewed 395 times
        
    6
            
            
        
        byteC0de
        
- 5,153
 - 5
 - 33
 - 66
 
- 
                    A timezone offset like +05:30 applies to many different places. You can't determine which one a particular offset applies to any more than you can identify a place only using its longitude (or in the case of timezone, a range of longitudes). E.g. Asia/Calcutta, Asia/Colombo and Asia/Kolkata all use +05:30. – RobG Sep 15 '17 at 02:29
 - 
                    https://momentjs.com/timezone/docs/#/data-loading/getting-zone-names/ I couldnt figure out how to get this working but you might find your answer along these lines – Isaac Sep 15 '17 at 02:33
 - 
                    https://stackoverflow.com/questions/28374901/get-timezone-abbreviation-using-offset-value – Zamrony P. Juhara Sep 15 '17 at 02:33
 - 
                    @Isaac—that will guess the timezone (and is not reliable), it will not provide a location as requested by the OP. – RobG Sep 15 '17 at 02:34
 - 
                    @ZamronyP.Juhara—that is not a duplicate (if that's what you're suggesting). – RobG Sep 15 '17 at 02:35
 - 
                    @RobG I was assuming the OP didnt need it to be that specific (as this is not possible, a lot of cities lie on the same timezones and the OP should know this, also part of the reason I degraded my answer to a comment). It's probably as close as they're going to get though – Isaac Sep 15 '17 at 02:36
 - 
                    1@Isaac—yes, it's not possible: "*I want the location name Asia/Kolkata.*" ;-) – RobG Sep 15 '17 at 02:37
 - 
                    @RobG it is not, but it may help. – Zamrony P. Juhara Sep 15 '17 at 05:21
 - 
                    I want exactly what RobG sed @Isaac – byteC0de Sep 15 '17 at 07:28
 - 
                    1@byteC0de then good luck – Isaac Sep 17 '17 at 21:26