@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)
"Action expands to fill the void created by human failure", Parkinson's generalized law of the vacuum