Comment on Welcome to the wonderful world of code obfuscation
Cosmicomical@kbin.social 1 year ago
You forgot weekend = dayOfWeek.name[0] == 'S';
Comment on Welcome to the wonderful world of code obfuscation
Cosmicomical@kbin.social 1 year ago
You forgot weekend = dayOfWeek.name[0] == 'S';
xmunk@sh.itjust.works 1 year ago
Can confirm this works completely as expected when the user’s system is set to lang=ES.
Schmeckinger@feddit.de 1 year ago
Simple save the users language setting in a variable, change it to english, check if the first letter is “s” and then change thr language back.
xmunk@sh.itjust.works 1 year ago
Genius.