<s> from datetime import datetime <EOL> import pytz <EOL> ALL_TIMEZONE_CHOICES = tuple ( zip ( pytz . all_timezones , pytz . all_timezones ) ) <EOL> COMMON_TIMEZONE_CHOICES = tuple ( zip ( pytz . common_timezones , pytz . common_timezones ) ) <EOL> PRETTY_TIMEZONE_CHOICES = [ ] <EOL> for tz in pytz . common_timezones : <EOL> now = datetime . now ( pytz . timezone ( tz ) ) <EOL> ofs = now . strftime ( "<STR_LIT>" ) <EOL> PRETTY_TIMEZONE_CHOICES . append ( ( int ( ofs ) , tz , "<STR_LIT>" % ( ofs , tz ) ) ) <EOL> PRETTY_TIMEZONE_CHOICES . sort ( ) <EOL> for i in xrange ( len ( PRETTY_TIMEZONE_CHOICES ) ) : <EOL> PRETTY_TIMEZONE_CHOICES [ i ] = PRETTY_TIMEZONE_CHOICES [ i ] [ <NUM_LIT:1> : ] </s>
