Skip to content

Commit

Permalink
Ensure that date/time output respects timezone in Petitions, History …
Browse files Browse the repository at this point in the history
…Records, and record Metadata (CFM-422) (#365)
  • Loading branch information
arlen authored Jan 22, 2026
1 parent 6184224 commit b7a0ce4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions app/templates/Petitions/petition.inc
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,11 @@ if (!empty($vv_obj?->petitioner_person?->id)) {
<div class="field">
<div class="field-name ">
<div class="field-title">
<?= __d('field','created') ?>: <?= $vv_obj->created ?>
<?= __d('field','created') ?>: <?= $this->Time->nice($vv_obj->created, $vv_tz) ?>
</div>
</div>
<div class="field-info">
<?= __d('field','modified') ?>: <?= $vv_obj->modified ?>
<?= __d('field','modified') ?>: <?= $this->Time->nice($vv_obj->modified, $vv_tz) ?>
</div>
</div>
</li>
Expand Down Expand Up @@ -306,7 +306,7 @@ if (!empty($vv_obj?->petitioner_person?->id)) {
</div>
<div class="petition-step-meta">
<span class="petition-step-modified">
<?= $step->modified ?>
<?= $this->Time->nice($step->modified, $vv_tz) ?>
</span>
<button class="cm-toggle nospin petition-step-toggle collapsed"
type="button"
Expand Down Expand Up @@ -377,7 +377,7 @@ if (!empty($vv_obj?->petitioner_person?->id)) {
?>
</td>
<td><?= $hr->comment ?></td>
<td><?= $hr->created ?></td>
<td><?= $this->Time->nice($hr->created, $vv_tz) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
Expand Down
4 changes: 2 additions & 2 deletions app/templates/element/changelog.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
$vv_obj->id
?></td>
<td><?= $vv_obj->revision ?></td>
<td><?= $vv_obj->modified ?></td>
<td><?= $this->Time->nice($vv_obj->modified, $vv_tz) ?></td>
<td><?= $vv_obj->actor_identifier ?></td>
</tr>
<?php foreach($vv_archives as $archive): ?>
Expand All @@ -101,7 +101,7 @@
)
?></td>
<td><?= $archive->revision ?></td>
<td><?= $archive->modified ?></td>
<td><?= $this->Time->nice($archive->modified, $vv_tz) ?></td>
<td><?= $archive->actor_identifier ?></td>
</tr>
<?php endforeach; // $archive ?>
Expand Down
4 changes: 2 additions & 2 deletions app/templates/element/entityMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
<?= __d('field', 'id.value', $vv_obj->id) ?>
</div>
<div id="cm-entity-created">
<?= __d('field', 'created.value', $vv_obj->created) ?>
<?= __d('field', 'created.value', $this->Time->nice($vv_obj->created, $vv_tz)) ?>
</div>
<?php if($vv_obj->created != $vv_obj->modified): ?>
<div id="cm-entity-modified">
<?= __d('field', 'modified.value', $vv_obj->modified) ?>
<?= __d('field', 'modified.value', $this->Time->nice($vv_obj->modified, $vv_tz)) ?>
</div>
<?php endif; ?>
</div>
Expand Down

0 comments on commit b7a0ce4

Please sign in to comment.