I have combed through the documentation and issue queue but could not find a clear answer for my issue. I'd like to display the Time Zone to end user in the Node View i.e. PST
Basically I have an "Event" content type setup that uses date with Timezone. Specifically, I am using "Date (ISO format)". The "Time zone handling" setting is set to "Date's Time Zone". This means that I can select a Time Zone at the same time when a date is selected for an event when creating content but have not found a way to show it in the Node View.
I have also looked though all the possible date formats but none of them show the time zone as an option. In other words, I see choices like "Wednesday, February 8, 2012 - 1:00pm" etc... but nothing like "Wednesday, February 8, 2012 - 1:00pm PST"
| Comment | File | Size | Author |
|---|---|---|---|
| zone.png | 107.79 KB | danny englander | |
| 2012-02-08_13-54-19.png | 59.17 KB | danny englander |
Comments
Comment #1
wusel commentedMy tipp:
Make a new "date and time"-format at "
http://example.com/admin/config/regional/date-time/formats".In this new format type "e" or "T" (e.g.: "D M j G:i:s T Y"). The format characters like "e" or "T" you can find at "
http://www.php.net/manual/en/function.date.php".Make a new "date"-type at "
http://example.com/admin/config/regional/date-time" and there use your new "date and time"-format.Use this "date"-type to show your event date and time in the node.
Good luck.
Comment #2
danny englander@wusel: This worked like a charm, thanks. I ended up using:
l F j, Y g:i a Twhich ended up displaying as:Tuesday February 28, 2012 10:29 am PSTComment #3
colanAlthough things are in slightly different places, this works in Drupal 6 as well.
Comment #3.0
colanbetter desc.