<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">
  <xi:include href="prefs.html" />
  <head>
    <title>${_('Date &amp; Time')}</title>
  </head>
  <body>

    <div class="field" py:with="session_tzname = settings.session.get('tz');
                                selected_tz = timezone(session_tzname) or utc">
      <label>${_('Time zone')}:
      <select name="tz">
        <option>${_('Default time zone')}</option>
        <option py:for="tzname in timezones"
                selected="${session_tzname != None and
                            session_tzname.startswith('Etc/') and
                            selected_tz == timezone(tzname) or
                            session_tzname == tzname or None}">$tzname</option>
      </select></label>
      <p class="hint">
        ${_('Configuring your time zone will result in all dates and times '
            'displayed on this site to use your time zone '
            'instead of that of the server.')}
      </p>

      <p class="hint" py:with="now = datetime.now(utc)">
        <!--! FIXME: message_contains_tag -->
        ${_('Example')}: 現在の時刻は <strong>${format_time(now, 'iso8601', tzinfo=utc)}</strong> (UTC) です。
        <br />
        ${session_tzname and 'あなたが選択した' or 'デフォルトの'}タイムゾーン${session_tzname and ' ' + selected_tz.tzname(None) + ' ' or ''}では、
        <strong>${format_time(now, 'iso8601', tzinfo=(session_tzname and selected_tz or localtz))}</strong> のように表示されます。
      </p>

      <p class="hint">
        ${_('Note')}: ${_('Universal Co-ordinated Time (UTC) is also known as Greenwich Mean Time (GMT).')}<br />
        ${_('A positive offset is used to indicate a timezone at the east of Greenwhich, i.e. ahead of Universal Time.')}
      </p>

    </div>

  </body>
</html>
