Bug 272750 - Update Argentina holidays rule file
Summary: Update Argentina holidays rule file
Status: RESOLVED FIXED
Alias: None
Product: kdepimlibs
Classification: Applications
Component: kholidays (show other bugs)
Version: 4.6
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: John Layt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-08 02:29 UTC by dv5a
Modified: 2012-02-01 15:22 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.8.1


Attachments
Argentina Holidays file (2.85 KB, text/plain)
2011-05-08 02:29 UTC, dv5a
Details
git format-patch (1.74 KB, patch)
2011-05-11 21:09 UTC, dv5a
Details
New Argentine Holidays Files (2.82 KB, text/plain)
2012-01-05 17:46 UTC, dv5a
Details
git format-patch (2.03 KB, patch)
2012-01-05 17:48 UTC, dv5a
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dv5a 2011-05-08 02:29:22 UTC
Created attachment 59756 [details]
Argentina Holidays file

Version:           4.6 (using KDE 4.6.2) 
OS:                Linux

Once again the Argentine legislation for holidays has changed. I am attaching the updated file. Please update the file, with the one included in this bug report.

Reproducible: Always




I am the author of the previous Argentine holidays files. (see my old bug 150203 , bug 172289 and bug 256007 )
Comment 1 dv5a 2011-05-08 02:30:59 UTC
Comment on attachment 59756 [details]
Argentina Holidays file

Update Argentine holiday rules file, for change in a 2011 holiday
Comment 2 dv5a 2011-05-11 21:09:34 UTC
Created attachment 59916 [details]
git format-patch 

Patch for git to fix the reported issue
Comment 3 dv5a 2011-06-15 02:59:05 UTC
John,

Could you please review my patch. Thanks
Comment 4 dv5a 2012-01-05 17:46:30 UTC
Created attachment 67492 [details]
New Argentine Holidays Files

Again Argentina holidays changed
Comment 5 dv5a 2012-01-05 17:48:18 UTC
Created attachment 67493 [details]
git format-patch
Comment 6 John Layt 2012-01-05 21:27:22 UTC
Thanks, I'll update that tonight for 4.8.  Just to clarify, the "Día de San Martín" is only supposed to happen in 2011?  In which case I think it would be easier and clearer just to write the date directly as 20.08.2011?
Comment 7 dv5a 2012-01-05 21:43:31 UTC
Thanks!!

It is a little tricky.  "Dia de San Martin" is always 3rd Monday of august (every year), but in 2011 it was approved a law that only that year it will be on 4th Monday of august. 

I am doing some date arithmetic there. (year == 2011) results in 1 for 2011 and 0 otherwise.

So, For year==2011 =>

(third + (year == 2011)) monday in august
(third + (2011 == 2011)) monday in august
(third + (1)) monday in august
(third + 1) monday in august
fourth monday in august

And for any other year =>

(third + (year == 2011)) monday in august
(third + (0)) monday in august
(third + 0) monday in august
third monday in august

Is there another way to express this condition?
Should I comment the logic used in the holidays file?

Thanks again
Comment 8 Allen Winter 2012-02-01 12:55:32 UTC
This one has fallen off the radar?

Christophe, maybe you take this one?
Comment 9 Christophe Marin 2012-02-01 15:21:38 UTC
Git commit 1cea03b115faedf3bfc900fc6a61776f1fab63e2 by Christophe Giboudeaux, on behalf of Daniel Mario Vega.
Committed on 01/02/2012 at 16:21.
Pushed by cgiboudeaux into branch 'master'.

Update Argentine holidays.
FIXED-IN: 4.8.1

M  +4    -3    kholidays/holidays/plan2/holiday_ar_es

http://commits.kde.org/kdepimlibs/1cea03b115faedf3bfc900fc6a61776f1fab63e2
Comment 10 Christophe Marin 2012-02-01 15:22:22 UTC
Git commit 1a07f7cbbeb6713277ce1dee383d22d633d1ea8c by Christophe Giboudeaux, on behalf of Daniel Mario Vega.
Committed on 01/02/2012 at 16:21.
Pushed by cgiboudeaux into branch 'KDE/4.8'.

Update Argentine holidays.
FIXED-IN: 4.8.1
(cherry picked from commit 8994337afc1ff8471148fa0227ee1750ce94b2cf)

M  +4    -3    kholidays/holidays/plan2/holiday_ar_es

http://commits.kde.org/kdepimlibs/1a07f7cbbeb6713277ce1dee383d22d633d1ea8c