Package org.fluxtream.core.mvc.models

Examples of org.fluxtream.core.mvc.models.TimeZoneSegmentModel


    public String getTimeZoneMapping(){
        TimeZoneMappingModel timeZoneMapping = new TimeZoneMappingModel();
        timeZoneMapping.timeZones = new ArrayList<TimeZoneSegmentModel>();
        List<DayMetadata> metaData = metadataService.getAllDayMetadata(AuthHelper.getGuestId());
        for (DayMetadata dayMetadata  : metaData){
            TimeZoneSegmentModel curTimeZone;
            if (timeZoneMapping.timeZones.size() == 0 || !timeZoneMapping.timeZones.get(timeZoneMapping.timeZones.size() - 1).name.equals(dayMetadata.getTimeInterval().getMainTimeZone().getID())){
                curTimeZone = new TimeZoneSegmentModel();
                curTimeZone.name = dayMetadata.getTimeInterval().getMainTimeZone().getID();
                curTimeZone.start = dayMetadata.start;
                curTimeZone.tz = TimeZone.getTimeZone(curTimeZone.name);
                curTimeZone.start +=  curTimeZone.tz.getOffset(curTimeZone.start);
                curTimeZone.offset = curTimeZone.tz.getRawOffset();
View Full Code Here

TOP

Related Classes of org.fluxtream.core.mvc.models.TimeZoneSegmentModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.