Skip to content
Browse files

Marking up dates and times.

  • Loading branch information...
1 parent ec87889 commit 041ed2680b11bd679417e236c0fefe4d44ea409e @davidpersson davidpersson committed Feb 7, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 views/pastes/index.html.php
  2. +1 −1 views/pastes/view.html.php
View
2 views/pastes/index.html.php
@@ -22,7 +22,7 @@
</td>
<td class="preview"><?= $truncate($row->content); ?></td>
<td><?=$row->author; ?></td>
- <td><?php echo date('Y-m-d H:i', strtotime($row->created)); ?></td>
+ <td><time datetime="<?=date('c', strtotime($row->created)); ?>"><?=$row->created; ?></time></td>
</tr>
<?php endforeach;?>
</tbody>
View
2 views/pastes/view.html.php
@@ -3,7 +3,7 @@
<div class="meta">
This <span class="language"><?=$paste->language;?></span> paste was created by
<span class="author user"><?=$paste->author;?></span> at
- <span class="created"><?=$paste->created;?></span>.
+ <time datetime="<?=date('c', strtotime($paste->created)); ?>" class="created"><?=$paste->created;?></time>.
</div>
<div class="nav">
<ul>

0 comments on commit 041ed26

Please sign in to comment.
Something went wrong with that request. Please try again.