# Load list of comments.
my $comment_list = $r->db->select(<<EOM, $d->{'id'});
SELECT v.id, v.patch_id, v.patch_comment_type, v.message_id, v.content,
- v.creator, to_char(v.creation_time, 'MM/DD/YYYY') AS creation_time
+ v.creator, to_char(v.creation_time, 'YYYY-MM-DD') AS creation_time
FROM most_recent_comments(?) v
EOM
for my $c (@$comment_list) {
my $patch_comment_list = $r->db->select(<<EOM, $d->{'id'});
SELECT v.id, v.patch_comment_type, v.message_id, v.content, v.creator,
-to_char(v.creation_time, 'MM/DD/YYYY HH:MI:SS AM') AS creation_time
+to_char(v.creation_time, 'YYYY-MM-DD HH:MI:SS AM') AS creation_time
FROM patch_comment_view v WHERE v.patch_id = ? ORDER BY v.creation_time
EOM