Commit 43452f43 authored by lee's avatar lee
Browse files

add setTZ

parent 43baa002
......@@ -50,6 +50,11 @@ Use this method to set your server's hostname. It will be used to generate the f
Use this method to set your feed's name.
### setTZ(timezone)
Use this method to set your feed's timezone.
### setProdID(prodID)
This method is used to overwrite the default ProdID:
......
......@@ -33,6 +33,10 @@ var a = {
cal.name = name.toString();
return cal.methods;
},
setTZ: function(tz) {
cal.tz = tz.toString();
return cal.methods;
},
addEvent: function(e) {
var _event = {};
......@@ -154,6 +158,12 @@ var a = {
if (cal.name) {
g += 'X-WR-CALNAME:' + cal.name + '\n';
}
if (cal.tz) {
g += 'X-WR-TIMEZONE:' + cal.tz + '\n';
}else{
g += 'X-WR-TIMEZONE:UTC+8\n';
}
// Domain
if(!cal.domain) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment