@saxnpaule said in New plugin [pimatic-datetime]:
But why is dayOfWeek = 4 in the german case?
I believe moment.js has quiet a few design flaws. From the documentation my understanding is the
isoWeekday() function returns a number in the range 1…7 while
weekday() returns a number in the range 0…6.
And how could the formatted datetime of Vietnam contain 62 seconds
Which format string did you use?
EDIT: Test Case for weekday issue:
var moment = require('moment-timezone')
var chrono = require('chrono-node')
var date = chrono.parseDate('Monday this week')
Mon Mar 19 2018 12:00:00 GMT+0100 (Mitteleuropäische Zeit)
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law