Subject: | Handle more fields as timestamps |
The attached patch extends the handling of timestamps with DateTime
objects to Attachment and Transaction objects.
Kind regards,
Dave Lambley
Subject: | datetime2.patch |
commit d811dc73f6da30abfdf431e4d9027511f90460a6
Author: Dave Lambley <davel@state51.co.uk>
Date: Tue Apr 17 10:40:46 2012 +0000
Add missing datetime field assertions.
diff --git a/rt-client-rest/lib/RT/Client/REST/Attachment.pm b/rt-client-rest/lib/RT/Client/REST/Attachment.pm
index 9191fc5..4d1d279 100644
--- a/rt-client-rest/lib/RT/Client/REST/Attachment.pm
+++ b/rt-client-rest/lib/RT/Client/REST/Attachment.pm
@@ -77,6 +77,7 @@ sub _attributes {{
validation => {
type => SCALAR,
},
+ is_datetime => 1,
},
content => {
diff --git a/rt-client-rest/lib/RT/Client/REST/Transaction.pm b/rt-client-rest/lib/RT/Client/REST/Transaction.pm
index 61fc054..c43f6e0 100644
--- a/rt-client-rest/lib/RT/Client/REST/Transaction.pm
+++ b/rt-client-rest/lib/RT/Client/REST/Transaction.pm
@@ -86,6 +86,7 @@ sub _attributes {{
validation => {
type => SCALAR,
},
+ is_datetime => 1,
},
description => {