def addTimeZoneOffsetToDate(the_date):
    # find our time zone offset in seconds
    tz = NSTimeZone.defaultTimeZone()
    seconds_offset = tz.secondsFromGMTForDate_(the_date)
    # return new NSDate minus local_offset
    return NSDate.alloc(
        ).initWithTimeInterval_sinceDate_(seconds_offset, the_date)
Input: NSDate object
dataset/ETHPy150Open munki/munki/code/client/munkilib/updatecheck.py/addTimeZoneOffsetToDate