Differences From Artifact [63ff3cf691]:
- File src/OFZooArchiveEntry.m — part of check-in [09be65bfcd] at 2024-03-02 10:54:54 on branch trunk — OFZooArchiveEntry: Add minimum version needed (user: js, size: 6494) [annotate] [blame] [check-ins using]
To Artifact [f5e97efd24]:
- File
src/OFZooArchiveEntry.m
— part of check-in
[830df1e8ec]
at
2024-03-02 11:01:18
on branch trunk
— OFZooArchiveEntry: Fix time zone
The time zone in Zoo archives is stored as west of UTC. (user: js, size: 6494) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
202 203 204 205 206 207 208 | date = [[OFDate alloc] initWithLocalDateString: dateString format: @"%Y-%m-%d %H:%M:%S"]; else { date = [OFDate dateWithDateString: dateString format: @"%Y-%m-%d %H:%M:%S"]; date = [[date dateByAddingTimeInterval: | | | | 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 | date = [[OFDate alloc] initWithLocalDateString: dateString format: @"%Y-%m-%d %H:%M:%S"]; else { date = [OFDate dateWithDateString: dateString format: @"%Y-%m-%d %H:%M:%S"]; date = [[date dateByAddingTimeInterval: (OFTimeInterval)_timeZone * 900] retain]; } objc_autoreleasePoolPop(pool); return [date autorelease]; } - (OFNumber *)timeZone { if (_timeZone == 0x7F) return nil; return [OFNumber numberWithFloat: -(float)_timeZone / 4]; } - (OFString *)description { void *pool = objc_autoreleasePoolPush(); OFString *ret = [OFString stringWithFormat: @"<%@:\n" |
︙ | ︙ |