[rt-users] DateTime custom field display issues
Alek Cesarz
alekreg at gmail.com
Mon Oct 29 08:25:31 EDT 2012
hello everyone,
some time ago I asked my team member to investigate problem with display
format of DateTime custom fields, but unfortunately he failed - so I
have to fix it myself... ((-:
I am using a few DateTime fields to mark some actions. they are rendered
correctly in Ticket preview/summary but in searches they are shown in
default ISO/UTC format.
here is an example (excerpt from search page source):
<td class="collection-as-table" ><b><a
href="/Ticket/Display.html?id=642">WRO Grunwaldzka</a></b></td>
<td class="collection-as-table" >2012-09-26 13:56:00</td>
<td class="collection-as-table" >2012-10-17 11:05:00</td>
<td class="collection-as-table" >Priorytet 3</td>
<td class="collection-as-table" >2012-10-27 17:37</td>
first 2 dates are custom fields and the last one is system bulitin
"Resolved" value.
in RT_SiteConfig.pm I have set following variables:
Set($Timezone, "Europe/Warsaw");
Set($DateTimeFormat, { Format => "ISO", Timezone => "server", Seconds =>
0 });
as you can see RT follows this setting for system fields but ignores it
for Custom Field.
in Ticket/Display everything is OK:
<tr id="CF-7-ShowRow">
<td class="label">Początek awarii:</td>
<td class="value">
2012-09-26 15:56
</td>
</tr>
<tr id="CF-8-ShowRow">
<td class="label">Koniec awarii:</td>
<td class="value">
2012-10-17 13:05
</td>
</tr>
please help me fix this.
best regards,
Alek
More information about the rt-users
mailing list