When I convert to dateItems, the date and time appear correctly for the time zone I am currently in, but the day of the week seems to be off. Today for example is Tuesday, but if I take the seconds right now (1443563834) and convert to dateItems I get: 2015,9,29,17,57,14,3
Date is correct, time is correct. According to the dictionary, the number for day of the week should be "2" but I am getting "3".
Am I missing something here?
From the dictionary:
Comments:
The dateItems format is a comma-separated list of numbers:
* the year
* the month number
* the day of the month
* the hour in 24-hour time
* the minute
* the second
* the numeric day of the week where Monday is day 1, Tuesday is day 2, and so forth