Comparing version 0.1.1 to 0.1.2
@@ -59,2 +59,5 @@ // Copyright (C) 2011 Tri Tech Computers Ltd. | ||
format: function(value) { | ||
if(!(value instanceof Date)) | ||
value = new Date(value); | ||
return value.getFullYear() | ||
@@ -75,2 +78,5 @@ +pad(value.getMonth()+1) | ||
format: function(value) { | ||
if(!(value instanceof Date)) | ||
value = new Date(value); | ||
return format_value('DATE', value)+'T'+format_value('TIME', value); | ||
@@ -162,2 +168,5 @@ }, | ||
format: function(value) { | ||
if(!(value instanceof Date)) | ||
value = new Date(value); | ||
// TODO: Right now we always use pure local time | ||
@@ -164,0 +173,0 @@ // That means the timezone is ignored and times are always local |
{ | ||
"name": "icalendar", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"author": "James Emerton <james@tri-tech.com>", | ||
@@ -5,0 +5,0 @@ "description": "RFC5545 iCalendar parser/generator", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
140056
1172