Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

gmtime: avoid a modulus

since WEEK_SECONDS = 7 * DAY_SECONDS, the result is the same

Change-Id: Iec161fc2de626c99c1aabf80ab1d3243eac602d9

authored by

Rafaël Carré and committed by
Bertrik Sikken
24bd9d53 2004f3ea

+1 -1
+1 -1
firmware/libc/gmtime.c
··· 53 53 int year, i, mday, hour, min; 54 54 55 55 /* weekday */ 56 - tm->tm_wday = ((seconds % WEEK_SECONDS) / DAY_SECONDS + 4) % 7; 56 + tm->tm_wday = (seconds / DAY_SECONDS + 4) % 7; 57 57 58 58 /* Year */ 59 59 year = 1970;