Module:Calendar date: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 212:
-- Generate start-date offset (ie. holiday starts the evening before the given date)
if json.startoffset then
startdate = dateOffset(startdate, json.startoffset)
if startdate ~= enddate then
startdate = dateOffset(startdate, json.startoffset)
enddate = dateOffset(enddate, json.startoffset)
else
startdate = dateOffset(startdate, json.startoffset)
if json.days == "1" then
json.days = "2"
end
end
end
-- Generate outside-Israel date offset (ie. outside Israel the holiday starts +1 day later)
if json.outoffset then
outoffset = dateOffset(startdate, json.outoffset)
end
 
-- Generate end-date outside-Irael offset (ie. outside Israel the holiday ends +1 day later)
if json.endoutoffset then
Line 338 ⟶ 331:
if version.isRedirect then
json = mw.text.jsonDecode( version.redirectTarget:getContent() )
-- json = mw.text.jsonDecode( version:getContent() )
else
json = mw.text.jsonDecode( version:getContent() )