The DS1302 has no concept of day-of-week based on date; it’s a user-defined field. The library does not compute it. Always set DOW explicitly when setting date.