mattbostock / leavediary

LeaveDiary is a web application for tracking annual leave
MIT License
2 stars 0 forks source link

Make LeaveDiary aware of public/bank holidays #13

Open mattbostock opened 9 years ago

mattbostock commented 9 years ago

Work out a way to make LeaveDiary aware of public or bank holidays.

Doesn't need to support public holidays for all countries. I imagine that this data will be used more as a hint for users rather than something that's strictly enforced, for these reasons:

a) Not everyone can take bank holidays as leave; they don't have to be included in the statutory leave allowance.

b) If the data has inaccuracies, users should be able to ignore it.

ajlanghorn commented 9 years ago

This might come in handy here.

mattbostock commented 9 years ago

Thanks Andrew, that could be useful.

mattbostock commented 9 years ago

I've updated the description to make this issue clearer.

mattbostock commented 9 years ago

This is likely blocked until #15 is implemented.

ajlanghorn commented 9 years ago

I agree #15 needs doing before this. Thinking about it, I wonder if using the Google Calendar Public Holidays calendar in JSON form using the Google Calendar API might be a better way - at least you'd be easily able to get public holidays from all around the world.

mattbostock commented 9 years ago

That's a good idea. We'd just need to be sure that we have the rights to use the data and work out a way to cache the data so we're updating it not more often than once every 24 hours.

The most important thing is that any failure to retrieve this data should not prevent a user from adding a leave request.