#9668 closed enhancement (fixed)
[PATCH] Add ics timezone
| Reported by: | Owned by: | Thijs Triemstra | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.0 |
| Component: | general | Version: | 0.12-stable |
| Severity: | minor | Keywords: | bitesized |
| Cc: | Branch: | ||
| Release Notes: |
Added |
||
| API Changes: | |||
| Internal Changes: | |||
Description
Apple's iCal supports the X-WR-TIMEZONE extension that takes the form of:
X-WR-TIMEZONE:Europe/Amsterdam
Pygments could provide that information?
Attachments (1)
Change History (14)
comment:1 by , 15 years ago
follow-up: 5 comment:2 by , 15 years ago
Replying to Thijs Triemstra <lists@…>:
Pygments could provide that information?
Pygments? WrongTrac? :)
comment:3 by , 15 years ago
Replying to Thijs Triemstra <lists@…>:
Apple's iCal supports the X-WR-TIMEZONE extension
And MS Outlook.
comment:4 by , 15 years ago
Here's a patch I'm not sure where to put atm that adds the X-WR-CALDESC project description to a calendar:
-
trac/ticket/roadmap.py
434 434 write_prop('METHOD', 'PUBLISH') 435 435 write_prop('X-WR-CALNAME', 436 436 self.env.project_name + ' - ' + _('Roadmap')) 437 write_prop('X-WR-CALDESC', self.env.project_description) 437 438 for milestone in milestones: 438 439 uid = '<%s/milestone/%s@%s>' % (req.base_path, milestone.name, 439 440 host)
comment:5 by , 15 years ago
Replying to rblank:
Replying to Thijs Triemstra <lists@…>:
Pygments could provide that information?
Pygments? WrongTrac? :)
Ugh, pytz! :) What I meant was the timezone data in the .ics file should correspond to the timezone setting in the properties panel.
by , 15 years ago
| Attachment: | ics-timezone-desc.patch added |
|---|
comment:6 by , 15 years ago
| Keywords: | review added |
|---|---|
| Summary: | Add ics timezone → [PATCH] Add ics timezone |
Attached patch adds the timezone if found in the session and project description for calendar description.
comment:7 by , 15 years ago
The timezone for the current user can be retrieved with req.tz. It is given by the session if defined, otherwise by the default timezone defined in trac.ini, or the local timezone of the server.
comment:8 by , 15 years ago
Thanks, a new patch:
-
trac/ticket/roadmap.py
434 434 write_prop('METHOD', 'PUBLISH') 435 435 write_prop('X-WR-CALNAME', 436 436 self.env.project_name + ' - ' + _('Roadmap')) 437 write_prop('X-WR-CALDESC', self.env.project_description) 438 write_prop('X-WR-TIMEZONE', str(req.tz)) 439 437 440 for milestone in milestones: 438 441 uid = '<%s/milestone/%s@%s>' % (req.base_path, milestone.name, 439 442 host)
comment:10 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Patch applied in [10177]. Thanks!
comment:11 by , 15 years ago
| Owner: | changed from to |
|---|
comment:12 by , 15 years ago
| Release Notes: | modified (diff) |
|---|
comment:13 by , 15 years ago
| Keywords: | review removed |
|---|---|
| Owner: | changed from to |



iCal also exports this additional VTIMEZONE data..