Issue 76: Time on issues should show time as well as date
This commit is contained in:
@@ -187,6 +187,13 @@ class IDF_Form_UserAccount extends Pluf_Form
|
||||
'size' => 32,
|
||||
),
|
||||
));
|
||||
|
||||
$this->fields['timezone'] = new Pluf_Form_Field_TimeZone(
|
||||
array('required' => false,
|
||||
'label' => __('Change Timezone'),
|
||||
'initial' => $this->user->timezone,
|
||||
'help_text' => __('This will change the way some of the date and times are displayed on the site.'),
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
|
@@ -22,12 +22,12 @@
|
||||
<img style="float:right; position: relative; max-height: 60px; max-width: 60px;" src="http://www.gravatar.com/avatar/{$submitter.email|md5}.jpg?s=60&d={media}/idf/img/spacer.gif" alt=" " />
|
||||
{/if}
|
||||
{if $i == 0}
|
||||
<p>{blocktrans}Reported by {$submitter}, {$c.creation_dtime|date}{/blocktrans}</p>
|
||||
<p>{blocktrans}Reported by {$submitter}, {/blocktrans}<span title="{$c.creation_dtime} GMT">{$request.user.convertToUserTimezone($c.creation_dtime)}</span></p>
|
||||
{else}
|
||||
{aurl 'url', 'IDF_Views_Issue::view', array($project.shortname, $issue.id)}
|
||||
{assign $id = $c.id}
|
||||
{assign $url = $url~'#ic'~$c.id}
|
||||
<p>{blocktrans}Comment <a href="{$url}">{$i}</a> by {$submitter}, {$c.creation_dtime|date}{/blocktrans}</p>
|
||||
<p>{blocktrans}Comment <a href="{$url}">{$i}</a> by {$submitter}, {/blocktrans}<span title="{$c.creation_dtime} GMT">{$request.user.convertToUserTimezone($c.creation_dtime)}</span></p>
|
||||
{/if}
|
||||
|
||||
|
||||
|
@@ -34,6 +34,13 @@
|
||||
<span class="helptext">{$form.f.email.help_text}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>{$form.f.timezone.labelTag}:</strong></th>
|
||||
<td>{if $form.f.timezone.errors}{$form.f.timezone.fieldErrors}{/if}
|
||||
{$form.f.timezone|unsafe}<br />
|
||||
<span class="helptext">{$form.f.timezone.help_text}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$form.f.language.labelTag}:</th>
|
||||
<td>{if $form.f.language.errors}{$form.f.language.fieldErrors}{/if}
|
||||
|
Reference in New Issue
Block a user