diff options
author | Struan Donald <struan@exo.org.uk> | 2012-04-25 11:23:24 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-04-25 11:23:24 +0100 |
commit | 50a656d612a4594425d78237efdc4c1cc2cbae83 (patch) | |
tree | 0049c04f5719a4fb5b579b782dd010df0552cd9c /perllib/Open311.pm | |
parent | 0d3521c5af8a0bbe54e9f6ac06837246c28af054 (diff) |
include timezone in date
Diffstat (limited to 'perllib/Open311.pm')
-rw-r--r-- | perllib/Open311.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/Open311.pm b/perllib/Open311.pm index 48143ebd4..07f4ab369 100644 --- a/perllib/Open311.pm +++ b/perllib/Open311.pm @@ -5,6 +5,7 @@ use Moose; use XML::Simple; use LWP::Simple; use LWP::UserAgent; +use DateTime::Format::W3CDTF; use HTTP::Request::Common qw(POST); has jurisdiction => ( is => 'ro', isa => 'Str' );; @@ -231,7 +232,7 @@ sub _populate_service_request_update_params { my $params = { update_id_ext => $comment->id, - updated_datetime => $comment->confirmed, + updated_datetime => DateTime::Format::W3CDTF->format_datetime($comment->confirmed_local), service_request_id => $comment->problem->external_id, service_request_id_ext => $comment->problem->id, status => $comment->problem->is_open ? 'OPEN' : 'CLOSED', |