Comments (5)
@glutamate Also to point 1. The default date time format can be taken from user or system locate parameters.
And can be configured in Configuration parameters of tenant.
Like in Russia we prefer YYYY-MM-DD HH:mm:ss
Example: 2016-02-27 20:24:39
Also i just google about format and Javascript support of date formats.
May be it can be helpfull:
Javascript standard https://www.ecma-international.org/ecma-262/11.0/index.html#sec-date-time-string-format
Javascript library https://momentjs.com/
from saltcorn.
Yes, there are several big issues here that I'm trying to think through. One is that for many countries the date format can be guessed from the language, but this is not the case in the UK (uses the European day convention rather than the American, which is default for English language). The other issue is time zone that I will probably have to deal with at some point.
from saltcorn.
improved in #336 and #337 - date formate now from locale. UK is still a problem.
from saltcorn.
@glutamate According https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl
You can use combination of language and Country like log("en-US");
// expected output: 5/24/2012 26,254.39
So I think will solve problem with UK.
from saltcorn.
There is now a format fieldview for dates. Standard ones try to match user's locale
from saltcorn.
Related Issues (20)
- Page view as 'Open in popup modal?' doesnt save signature pad entry file in database
- Filter Dropdown Doing Wildcard Search
- FR: "Customizable 'Welcome to Saltcorn!' Notification for Enhanced User Experience"
- Local authentication plugin HOT 1
- Can I render a certain view inside js-code-view?(Is View in scope?)
- Table creation broken
- Cannot have more than 1 signature pad in a view.
- How to edit 'Date' type fields in a view
- Error in Updating to Latest Version of Saltcorn HOT 24
- Use of docx.js.org in saltcorn HOT 1
- dragging an event in fullcalendar does not fir the update trigger
- what options does the return command accept HOT 1
- Support multiple schemas HOT 1
- Search and Tags in the Saltcorn store HOT 1
- Nodered/n8n style automations HOT 3
- Unable to create backup HOT 3
- LDAP session on tenant problem with prod image
- Error uploading files
- Let users delete themselves HOT 3
- How to set state features of @saltcorn/data/db/state? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from saltcorn.