Standardize on YYYY-MM-DD date format.
authorRobert Haas <[email protected]>
Tue, 26 May 2009 11:06:30 +0000 (07:06 -0400)
committerRobert Haas <[email protected]>
Tue, 26 May 2009 11:06:30 +0000 (07:06 -0400)
perl-lib/PgCommitFest/CommitFest.pm
perl-lib/PgCommitFest/Patch.pm

index e6cadd93a61fca79e948406a910abcde3ee10769..f16819d81274daedb8dbb14bbe270f0cc5369c33 100644 (file)
@@ -114,7 +114,7 @@ EOM
        # 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) {
index d278812e5c48c1f1b2eb2b5a0abc172211bf6cc1..b648e4adf07f640bbace9fd462e495836ad2aff0 100644 (file)
@@ -131,7 +131,7 @@ EOM
 
        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