ywana-core8 0.0.507 → 0.0.508

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.507",
3
+ "version": "0.0.508",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
package/src/html/table.js CHANGED
@@ -230,7 +230,7 @@ const StringCellViewer = ({ id, value, format, options }) => {
230
230
  case FORMATS.DATE:
231
231
  let fecha = new Date(text)
232
232
  fecha.setMinutes(fecha.getMinutes() + fecha.getTimezoneOffset() + 1)
233
- text = fecha.toLocaleString( locale, { year: 'numeric', month: 'numeric', day: 'numeric'});
233
+ text = fecha.toLocaleString( locale, { day: 'numeric', month: 'numeric', year: 'numeric'});
234
234
  break;
235
235
  case FORMATS.TIME:
236
236
  text = new Date(text).toLocaleString( locale, { year: 'hour', month: 'minute', day: 'second' });
@@ -14,7 +14,7 @@ export const TableTest = (prop) => {
14
14
  { id: 6, checked: false, name: "John Smith" , color: "#CCFFFF" },
15
15
  { id: 7, checked: false, name: "Ann Martin" , color: "#CCFFFF" },
16
16
  { id: 8, checked: false, name: "Martin Freeman", color: "#CCFFFF" },
17
- { id: 9, checked: false, name: "Ann Martin" , color: "#CCFFFF" },
17
+ { id: 9, checked: false, name: "Ann Martin" , color: "#CCFFFF", date: new Date().toString() },
18
18
  ]
19
19
  )
20
20
 
@@ -44,6 +44,7 @@ export const TableTest = (prop) => {
44
44
  { id: "name", label: "Name", type: "String", sortable: true },
45
45
  { id: "thumb", label: "Thumb", type: "String", format: FORMATS.IMG },
46
46
  { id: "color", label: "Color", type: "String", format: FORMATS.COLOR },
47
+ { id: "date", label: "Date", type: "String", format: FORMATS.DATE },
47
48
  ],
48
49
  rows
49
50
  }