I'm trying to use this function Toybox.Time.Gregorian.utcInfo and on the simulator it works fine, but when I copy the app to the watch I get an error saying that utcInfo is not defined.
Here is the code I have:
// get utc time
var utcTime = Toybox.Time.Gregorian.utcInfo(Time.now(), Calendar.FORMAT_MEDIUM);
Is there another way to get the current utc time?
I just recently updated to the 2.2.1 SDK