Overview
| Comment: | OFZooArchiveEntry: Fix time zone
The time zone in Zoo archives is stored as west of UTC. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
830df1e8ecfb4191a2908c8af7c839eb |
| User & Date: | js on 2024-03-02 11:01:18 |
| Other Links: | manifest | tags |
Context
|
2024-03-02
| ||
| 11:41 | ofarc: Delay setting modified date of directories (check-in: f007fe7b02 user: js tags: trunk) | |
| 11:01 | OFZooArchiveEntry: Fix time zone (check-in: 830df1e8ec user: js tags: trunk) | |
| 10:56 | ofarc: Fix typo in German localization (check-in: e0f6c049fd user: js tags: trunk) | |
Changes
Modified src/OFZooArchiveEntry.m from [63ff3cf691] to [f5e97efd24].
| ︙ | ︙ | |||
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"
|
| ︙ | ︙ |