Skip to content

Instantly share code, notes, and snippets.

@em230418
Created March 23, 2022 10:47
Show Gist options
  • Save em230418/adb55b465359850230d7bd7e072d2626 to your computer and use it in GitHub Desktop.
Save em230418/adb55b465359850230d7bd7e072d2626 to your computer and use it in GitHub Desktop.
diff --git a/addons/web/static/src/views/helpers/sample_server.js b/addons/web/static/src/views/helpers/sample_server.js
index 63b090149c1..41ee14b88af 100644
--- a/addons/web/static/src/views/helpers/sample_server.js
+++ b/addons/web/static/src/views/helpers/sample_server.js
@@ -309,7 +309,7 @@ export class SampleServer {
*/
_getRandomDate(format) {
const delta = Math.floor((Math.random() - Math.random()) * SampleServer.DATE_DELTA);
- return luxon.DateTime.local().plus({ hours: delta }).toFormat(format);
+ return luxon.DateTime.local().plus({ hours: delta }).toFormat(format, {numberingSystem: 'latn'});
}
/**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment