Hi!
Came across weird bug. I downloaded actions with Insert date from directory. Date will be correct, but week number will be entered from last week. So now it’s week 32, but in drafts I get week 31.
Do I need to specify location in action to get the correct week number?
Thanks a lot!
What are you actually doing? What action? How are you determining the week number?
If you are using templates with strftime notation, I would expect a tag like [[date|%V]]
? (Which is currently returning 32 for me)
1 Like
Found why I got fail week. I used W. Now replaced with V and works fine.
Another question
[[date|%B %d, %Y, %V]]
With this format I get name of month in English. Can I edit it to another language or maybe system language?
I modified a javascript example
add this script to an action step ang go forward from there:
const event = new Date(Date.UTC(2012, 11, 20, 3, 0, 0));
const now = new Date()
const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
draft.append(event.toLocaleDateString('de-DE', options));
// expected output: Donnerstag, 20. Dezember 2012
draft.append(event.toLocaleDateString('ar-EG', options));
// expected output: الخميس، ٢٠ ديسمبر، ٢٠١٢
draft.append(now.toLocaleDateString(undefined, options));
// expected output: Thursday, December 20, 2012 (varies according to default locale)