HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/trac_theflexguy_com_trac/trac/prefs/templates/prefs_datetime.html
<!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)">
        Example: The current time is <strong>${format_time(now, 'iso8601', tzinfo=utc)}</strong> (UTC).
        <br />
        In ${session_tzname and 'your' or 'the Default'} time zone ${session_tzname and ' ' + selected_tz.tzname(None) or ''}, this would be displayed as
        <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>