B2G/gecko/dom/alarm/AlarmService.jsm
/**
   * Create a copy of the alarm that does not expose internal fields to
   * receivers and sticks to the public |respectTimezone| API rather than the
   * boolean |ignoreTimezone| field.
   */
Create a copy of the alarm that does not expose internal fields to
receivers and sticks to the public |respectTimezone| API rather than the
boolean |ignoreTimezone| field.
Create a copy of the alarm that does not expose internal fields to receivers and sticks to the public |respectTimezone| API rather than the boolean |ignoreTimezone| field .
function _publicAlarm(aAlarm) {
    let alarm = {
      "id":              aAlarm.id,
      "date":            aAlarm.date,
      "respectTimezone": aAlarm.ignoreTimezone ?
                           "ignoreTimezone" : "honorTimezone",
      "data":            aAlarm.data
    };
    return alarm;
  }
function _publicAlarm ( aAlarm ) { let alarm = { "id" : aAlarm . id , "date" : aAlarm . date , "respectTimezone" : aAlarm . ignoreTimezone ? "ignoreTimezone" : "honorTimezone" , "data" : aAlarm . data } ; return alarm ; }
Create a copy of the alarm that does not expose internal fields to
 receivers and sticks to the public |respectTimezone| API rather than the
 boolean |ignoreTimezone| field.
Create a copy of the alarm that does not expose internal fields to receivers and sticks to the public |respectTimezone| API rather than the boolean |ignoreTimezone| field .