Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- zipToTimeZoneMap = new Map<String, String>();
- for(Opportunity o :activelyWorkingoppsData)
- {
- String timeDiff = zipToTimeZoneMap.get(o.postal_code__c);
- System.debug('o.postal_code__c=================>'+o.postal_code__c);
- TimeZone__c tz = TimeZone__c.getValues(o.postal_code__c);
- System.debug(tz);
- integer d;
- if(tz!=null){
- d = integer.ValueOf(tz.TimeDiff__c);
- System.debug('integerD===========>'+d+'integerTZ==='+tz);
- localTime = system.Now().addHours(d).format('h:mm a');
- zipToTimeZoneMap.put(o.postal_code__c,localTime);
- System.debug('zipToTimeZoneMap=================>'+zipToTimeZoneMap);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement