Mistři v programování na #hovnokod

Ruby #196

# I really hate american week system (0 - sunday, 6 - saturday),
# maybe it is better, but this crap is incompatible with
# European week system (0 - monday, 6 - sunday)
wday = date.wday - 1
wday = 6 if wday == -1

Anonymous,