Forum OpenACS Q&A: Re: timezone usage
I'll obtain the rows for the timezones table doing a:
find /usr/share/zoneinfo/ -type f -print | grep -v "/right/" | grep -v "/posix"
Notice this will ignore the /usr/share/zoneinfo/posix directory, the /usr/share/zoneinfo/posixrules file, and the /usr/share/zoneinfo/right directory. I'm not quite sure what they do.
I'll then populate the timezone_rules table with:
zdump -v `find /usr/share/zoneinfo/ -type f -print | grep -v "/right/" | grep -v "/posix"`
(Thanks Jeff Davis posting how to use the zdump command on this thread)
I'm just wondering if someone has already done this. Or if you think I'll run into some problems when doing this. I believe this will give me all the timezones and timezone rules Linux is aware of.