I created a task in the MS Task Scheduler app with the simple XML command approach:
SCHTASKS / CREATE / SC DAILY / TN "TEST" / XML
When I try to register the task in an Arabic regional operating system setting / machine, task registration fails.
Failed command_prompt (image)
1441-04-07T11:33:39 TEST 1441-04-07T11:33:39-08:00..
However, if I edit the date in this XML file in our default calendar 2019 (en-US based) instead of the Arabic year 1441 (Hijri calendar), the task is successfully registered:
Success command_prompt (image)
2019-04-12T11:33:39 TEST 2019-04-12T11:33:39-08:00..
I am using this command from a Wpf UI application, so I can not put an unlocated date format in it. Please let me know how I can register this task on this localized computer! Many thanks.