You are here: Foswiki>Tasks Web>Item8902 (13 Apr 2010, TimotheLitt)Edit Attach

Item8902: Improve LocalTimePlugin usage info

pencil
Priority: Low
Current State: New
Released In:
Target Release: n/a
Applies To: Extension
Component: LocalTimePlugin
Branches:
Reported By: TimotheLitt
Waiting For:
Last Change By: TimotheLitt
The LocalTimePlugin accepts timezone names - these aren't always easy for the end user to find.

Here's a 1-line shell script that will generate a topic containing the valid time zone names for the local system. Change /usr/share/zoneinfo to match TZDIR - it's default can be extracted from man tzselect.

It could be adapted to update the plugin's topic during install...

find  /usr/share/zoneinfo -type f |sort -t/ -k1 -k2  | sed -e'$!N;s/\n/ | /' -e'$!N;s/\n/ | /'  -e'$!N;s/\n/ | /'  -e's/^\(.*\)$/| \1 |/'  -e's./usr/share/zoneinfo/..g' >data/Main/TimeZones.txt

-- TimotheLitt - 13 Apr 2010

 
Topic revision: r1 - 13 Apr 2010, TimotheLitt
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy