This patch is based off of your svn repository, revision 4093. It
seems that the time is expected to be in UTC format with *no* offset.
So what I did was modify the Entry.pm when subroutine to convert the
start and end DateTime objects to UTC and fix the format (I think
actually back to the way you had it originally). I also fixed the
Manifest file so it wouldn't complain. This seems to work for me ...
YMMV.
[EMAIL PROTECTED]:~/work/Net-Google-Calendar$ svn diff
Index: lib/Net/Google/Calendar/Entry.pm
===================================================================
--- lib/Net/Google/Calendar/Entry.pm (revision 4093)
+++ lib/Net/Google/Calendar/Entry.pm (working copy)
@@ -209,9 +209,14 @@
$@ = "End is not less than start";
return undef;
}
+
+ # Convert to UTC
+ $start->set_time_zone( 'UTC' );
+ $end->set_time_zone( 'UTC' );
+
$self->set($self->{_gd_ns}, "gd:when", '', {
- startTime => $start->strftime("%FT%T%Z"),
- endTime => $end->strftime("%FT%T%Z"),
+ startTime => $start->strftime("%FT%TZ"),
+ endTime => $end->strftime("%FT%TZ"),
});
}
my $start = $self->_my_get($self->{_gd_ns}, 'when', 'startTime');
Index: MANIFEST
===================================================================
--- MANIFEST (revision 4093)
+++ MANIFEST (working copy)
@@ -10,4 +10,3 @@
TODO
USAGE
META.yml
-Makefile.PL
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi
-~----------~----~----~----~------~----~------~--~---