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?
def get_date_in(loc, df):
formats = ["%d-%b-%Y", "%d %b %Y"] # Update formats here
for f in formats:
if f == df:
loc_date = time.strftime(f)
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