I use the following code for getting the device timezone
func getCurrentTimeZone() -> String{
return TimeZone.current.identifier
}
let currentTimeZone = getCurrentTimeZone()
print(currentTimeZone)
It gives the location e.g. "Asia/Dhaka", but I want to get in the "+02:00 or -04:30" format. How can I convert the value to the desired format?