~foura/uxn900

ceae92748f0f682e94006a7dfb057199113f3570 — james palmer 3 months ago 25bea2e
datetime: report correct day of year.
1 files changed, 3 insertions(+), 3 deletions(-)

M src/dev/datetime.c
M src/dev/datetime.c => src/dev/datetime.c +3 -3
@@ 60,13 60,13 @@ datetime_doty(void)
	Uint16 ret;

	Uint8 day = datetime_snarf(Rdays) - 1;
	Uint8 month = datetime_snarf(Rmonths) - 1;
	Uint8 month = datetime_snarf(Rmonths);
	Uint8 year = datetime_snarf(Ryears);

	ret = 0;
	for(Uint8 i = 0; i < month; i++) {
	for(Uint8 i = 1; i < month; i++) {
		switch(i) {
		case 0:
		case 1:
		case 3:
		case 5:
		case 7: