Overview
Comment: | OFMutableZooArchiveEntry: Support for local time |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
f8e24e08f503b102155b5ad9c7193d1b |
User & Date: | js on 2024-03-02 18:52:52 |
Other Links: | manifest | tags |
Context
2024-03-02
| ||
21:20 | Minor documentation fix check-in: 7619af113a user: js tags: trunk | |
18:52 | OFMutableZooArchiveEntry: Support for local time check-in: f8e24e08f5 user: js tags: trunk | |
18:45 | Add OFMutableZooArchiveEntry check-in: d631674979 user: js tags: trunk | |
Changes
Modified src/OFMutableZooArchiveEntry.m from [1d42b1617a] to [26fa9bdcde].
︙ | ︙ | |||
70 71 72 73 74 75 76 | _compressionMethod = compressionMethod; } - (void)setModificationDate: (OFDate *)date { void *pool = objc_autoreleasePoolPush(); | | > > > > > > > > | | | | > | 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | _compressionMethod = compressionMethod; } - (void)setModificationDate: (OFDate *)date { void *pool = objc_autoreleasePoolPush(); if (_timeZone == 0x7F) { _lastModifiedFileDate = (((date.localYear - 1980) & 0xFF) << 9) | ((date.localMonthOfYear & 0x0F) << 5) | (date.localDayOfMonth & 0x1F); _lastModifiedFileTime = ((date.localHour & 0x1F) << 11) | ((date.localMinute & 0x3F) << 5) | ((date.second >> 1) & 0x0F); } else { date = [date dateByAddingTimeInterval: -(OFTimeInterval)_timeZone * 900]; _lastModifiedFileDate = (((date.year - 1980) & 0xFF) << 9) | ((date.monthOfYear & 0x0F) << 5) | (date.dayOfMonth & 0x1F); _lastModifiedFileTime = ((date.hour & 0x1F) << 11) | ((date.minute & 0x3F) << 5) | ((date.second >> 1) & 0x0F); } objc_autoreleasePoolPop(pool); } - (void)setCRC16: (uint16_t)CRC16 { _CRC16 = CRC16; |
︙ | ︙ |