« first day (2 days earlier)    last day (15 days later) » 

07:05
@PaulJurczak So digitalPinToInterrupt(6) returns 6? My earlier suggestion therefore meant that omitting digitalPinToInterrupt would have been equivalent, however it doesn't actually solve your problem. I can't see anything wrong, except that maybe attachInterrupt is not working as intended.

« first day (2 days earlier)    last day (15 days later) »