Revision
23105
Author
zarzycki@apple.com
Date
2007-02-23 11:44:35 -0800 (Fri, 23 Feb 2007)

Log Message

<rdar://problem/4798263> Documentation of launchd.plist does not specify month is 0-11

Modified Paths

Diff

Modified: trunk/launchd/src/launchd_core_logic.c (23104 => 23105)


--- trunk/launchd/src/launchd_core_logic.c	2007-02-23 17:40:11 UTC (rev 23104)
+++ trunk/launchd/src/launchd_core_logic.c	2007-02-23 19:44:35 UTC (rev 23105)
@@ -2660,6 +2660,7 @@
 	}
 	if ((tmp_k = launch_data_dict_lookup(obj, LAUNCH_JOBKEY_CAL_MONTH))) {
 		tmptm.tm_mon = launch_data_get_integer(tmp_k);
+		tmptm.tm_mon -= 1; /* 4798263 cron compatibility */
 	}
 
 	return calendarinterval_new(j, &tmptm);