Search in sources :

Example 1 with ZoneOffset

use of org.threeten.bp.ZoneOffset in project open-event-android by fossasia.

the class ScheduleFragment method onResume.

@Override
public void onResume() {
    super.onResume();
    // showing timezone with offset.
    ZoneId zoneId = DateConverter.getZoneId();
    ZoneOffset zoneOffset = zoneId.getRules().getOffset(Instant.now());
    setSubtitle("(GMT" + zoneOffset.toString() + ")");
}
Also used : ZoneId(org.threeten.bp.ZoneId) ZoneOffset(org.threeten.bp.ZoneOffset)

Aggregations

ZoneId (org.threeten.bp.ZoneId)1 ZoneOffset (org.threeten.bp.ZoneOffset)1