I'd like to allow users to set a timezone field on a node (which represents an entity in a particular geographic location). This would allow any CCK Date fields associated with that node to be translated into that node's timezone for display (through custom coding).
However, there are 2 things I can't figure out:
1) How to display the timezone selection widget
2) When I have stored the timezone for a node and have a date that I want to display relative to that timezone, how can I do so? I feel like it would be more complicated than taking the date and adding the timezone's offset to it (the offset being like the one in the timezone field in the users table), because shouldn't that offset change based on the time of year to account for daylight savings time, etc?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | add_timezone_as_a_cck_field-969272-2.patch | 6.02 KB | artkon |
Comments
Comment #1
hanno commentedAlso interested in this functionality. @random720 did you succeed?
Comment #2
artkon commentedRan into this issue as well.
In our case, we needed to have a default time zone assigned to a group (OG module) so that all events would be displayed in that timezone specifically targeting those users who are currently not signed in (anonymous).
The following patch is creating a timezone field available for content types (like a group) to be able to set their own timezone, this timezone will be available for the content type where you include it.
You can also download this module if this patch is not taken -> http://drupal.org/project/tzfield
Comment #3
artkon commentedComment #4
johnvI'd prefer using the dedicated tzfield.
It would need a new setting for 'Time zone handling' : 'node's/entity's time zone', next to user/site/date/none.
Comment #5
damienmckennaUnfortunately the D6 version of this module is no longer supported, but we appreciate the time you put into this. If this would be relevant for D7 too, please reopen the issue. Thanks.