summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService
diff options
context:
space:
mode:
authorKoosha Khajeh Moogahi <koosha.khajeh@gmail.com>2012-07-24 18:13:47 +0200
committerDave Lawrence <dlawrence@mozilla.com>2012-07-24 18:13:47 +0200
commitf73e8c19efddba98d0b68c8c5259f7548b627b3f (patch)
treefe21b4c287978a42a4ae04a72d135048845a825e /Bugzilla/WebService
parentcfd67484c07a29617c3e35e03b90bdd3befc6dd7 (diff)
downloadbugzilla-f73e8c19efddba98d0b68c8c5259f7548b627b3f.tar.gz
bugzilla-f73e8c19efddba98d0b68c8c5259f7548b627b3f.tar.xz
Bug 520434 - Inconsistent naming of time fields (creation_time vs time)
r=dkl, a=LpSolit
Diffstat (limited to 'Bugzilla/WebService')
-rw-r--r--Bugzilla/WebService/Bug.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm
index 5e55699c4..6b5d8e3ef 100644
--- a/Bugzilla/WebService/Bug.pm
+++ b/Bugzilla/WebService/Bug.pm
@@ -312,6 +312,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),
@@ -1641,6 +1642,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
@@ -1682,6 +1690,8 @@ C<creator>.
=back
+=item C<creation_time> was added in Bugzilla B<4.4>.
+
=back