Skip Menu |

This queue is for tickets about the RT-Client-REST CPAN distribution.

Report information
The Basics
Id: 76658
Status: resolved
Priority: 0/
Queue: RT-Client-REST

People
Owner: bobtfish [...] bobtfish.net
Requestors: bitcard [...] davel.me.uk
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.43
Fixed in: (no value)



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 => {
Applied in the repository as r57, thanks for the patch. Cheers t0m