]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 520434 - Inconsistent naming of time fields (creation_time vs time)
authorKoosha Khajeh Moogahi <koosha.khajeh@gmail.com>
Tue, 24 Jul 2012 16:00:32 +0000 (12:00 -0400)
committerDave Lawrence <dlawrence@mozilla.com>
Tue, 24 Jul 2012 16:00:32 +0000 (12:00 -0400)
r=dkl, a=LpSolit

Bugzilla/WebService/Bug.pm

index bf6a162161d5da9a00ad54f72eca6a9c43f16933..82bfff445054cc056eb8ac74875da935fc65c529 100644 (file)
@@ -297,6 +297,7 @@ sub _translate_comment {
         creator    => $self->type('string', $comment->author->login),
         author     => $self->type('string', $comment->author->login),
         time       => $self->type('dateTime', $comment->creation_ts),
+        creation_time => $self->type('dateTime', $comment->creation_ts),
         is_private => $self->type('boolean', $comment->is_private),
         text       => $self->type('string', $comment->body_full),
         attachment_id => $self->type('int', $attach_id),
@@ -1613,6 +1614,13 @@ Bugzillas. (However, this backwards-compatibility will go away in Bugzilla
 
 C<dateTime> The time (in Bugzilla's timezone) that the comment was added.
 
+=item creation_time
+
+C<dateTime> This is exactly same as the C<time> key. Use this field instead of
+C<time> for consistency with other methods including L</get> and L</attachments>.
+For compatibility, C<time> is still usable. However, please note that C<time>
+may be deprecated and removed in a future release.
+
 =item is_private
 
 C<boolean> True if this comment is private (only visible to a certain
@@ -1654,6 +1662,8 @@ C<creator>.
 
 =item C<count> was added to the return value in Bugzilla B<4.4>.
 
+=item C<creation_time> was added in Bugzilla B<4.4>.
+
 =back
 
 =back