You are here: Forum Home → ANT Developers Forums → ANT+ FIT Forum Has Moved → Thread
MesgBroadcaster mesgBroadcaster = new MesgBroadcaster(decode);
mesgBroadcaster.addListener(new ActivityMesgListener() {
public void onMesg(ActivityMesg mesg) {
long utc = mesg.getTimestamp().getTimestamp();
long local;
Long localTimestamp = mesg.getLocalTimestamp();
if (localTimestamp == null) {
} else {
}
long offset = (local - utc) * 1000;
sharedResultMap.put("timeZone", getTimeZone(offset));
}
});