How to add Indian Holidays in Dolibarr

I tried to add Indian holidays in Dolibarr
I googled for this and I found I need to edit htdocs/core/lib/date.lib.php for this but I am not able to figure out with the timezone part what I need to add in it as India is on +5.30 offset from GMT.
I am including the list of holidays with fixed Date
if($jour == 1 && $mois == 1) $ferie=true; // New Year’s Day
if($jour == 26 && $mois == 1) $ferie=true; // Republic Day
if($jour == 1 && $mois == 5) $ferie=true; // May Day
if($jour == 15 && $mois == 8) $ferie=true; // Independence Day
if($jour == 2 && $mois == 10) $ferie=true; // Gandhi Jayanti
if($jour == 25 && $mois == 12) $ferie=true; // Christmas
I am struggling with the timezone array part what should I use for India, Should I use 5.5=>“Asia/ ?”, or 5.30=>“Asia/?”,
Please add this list in respective file in future versions.

Possibly irrelevant to your question, but still may be useful for you… How to set a national holidays in HRM?

1 Like

Thanks for replying me above link helps me to add the Holidays but still now I am struggling with the timezone issue how to add it ?? :whistle:

Hi,

The link is not working now. Can anyone tell me how to update National Holidays of India?

Hi,

Link updated on the post

please check this link it may be helpful.