[Rt-commit] [svn] r807 - rt/trunk/lib/RT

autrijus at pallas.eruditorum.org autrijus at pallas.eruditorum.org
Sun May 2 17:18:08 EDT 2004


Author: autrijus
Date: Sun May  2 17:18:08 2004
New Revision: 807

Modified:
   rt/trunk/lib/RT/Date.pm
Log:
* Backport Date->W3CDTF from rt-3.3 for REST 2.0.


Modified: rt/trunk/lib/RT/Date.pm
==============================================================================
--- rt/trunk/lib/RT/Date.pm	(original)
+++ rt/trunk/lib/RT/Date.pm	Sun May  2 17:18:08 2004
@@ -529,6 +529,24 @@
 
 # }}}
 
+# {{{ sub W3CDTF
+
+=head2 W3CDTF
+
+Takes nothing
+
+Returns the object's date in W3C DTF format
+
+=cut
+
+sub W3CDTF {
+    my $self = shift;
+    my $date = $self->ISO . 'Z';
+    $date =~ s/ /T/;
+    return $date;
+};
+
+# }}}
 
 # {{{ sub LocalTimezone 
 =head2 LocalTimezone


More information about the Rt-commit mailing list