Yes, that's right. The system language is Dutch. How to get an English output when keeping the system language (Dutch) the same?
Prior to Mojave, and after Keyboard Maestro 9.0, dates should be in your chosen language. Unfortunately Apple changed Mojave and later to make the system return dates only in the Keyboard Maestro localized language (ie, English), regardless of your chosen locale. Keyboard Maestro 9.0 works around this by claiming to be in all locales, even though it is really only localized for English itself. token:ICUDateTime [Keyboard Maestro Wiki]
Does someone know a workaround? How to get an English output when keeping the system language (Dutch) the same?
import time
import locale
def get_date_in(loc, df):
formats = ["%d-%b-%Y", "%d %b %Y"] # Update formats here
for f in formats:
if f == df:
locale.setlocale(locale.LC_ALL, loc)
loc_date = time.strftime(f)
return loc_date
Instead of the variable Plus1Day I did use %ICUDateTimePlus%1%Days%MMMM dd, yyyy%. However this does not give an English output, the name of the month is in Dutch.
How do I need to change date '+%B %d, %Y' to get the date of tomorrow via Execute Shell Script?
How to do this with plus 1 month?
How to do this with plus 1 year?
I googled for "Shell Script Date Counting" but I am absolutely no Shell expert, so I would appreciate some help.
Thanks for the instructions, Chris! Right now I have the macro working like I wanted.
I'll start with your post when I want to do something in the Terminal in the future.
Maybe off-topic but I know that the Terminal can be really powerful, so the fear of doing something wrong (as a beginner) did keep me from using it, or testing things that you can find via Google. Anyway I am happy with your help, thanks! @ccstone