|
|
@@ -1,7 +1,7 @@
|
|
|
-function fromBase64(text){
|
|
|
- try{
|
|
|
+function fromBase64(text) {
|
|
|
+ try {
|
|
|
return atob(text)
|
|
|
- }catch(_e){
|
|
|
+ } catch (_e) {
|
|
|
return text
|
|
|
}
|
|
|
}
|
|
|
@@ -12,8 +12,8 @@ export const Encabezados = [
|
|
|
name: 'id',
|
|
|
numeric: true,
|
|
|
label: 'ID',
|
|
|
- options:{
|
|
|
- display:false
|
|
|
+ options: {
|
|
|
+ display: false
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -60,13 +60,17 @@ export const niveles_educativos = [
|
|
|
]
|
|
|
|
|
|
export function Build(pwds) {
|
|
|
+
|
|
|
+ const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
|
|
|
+ //NOTE:
|
|
|
+ //js year formt yyyy/mm/dd
|
|
|
return pwds.map(password => {
|
|
|
- let { pwd, plaza_id,deadpwd,dateToActived } = password
|
|
|
+ let { pwd, plaza_id, deadpwd, dateToActived } = password
|
|
|
return {
|
|
|
id: plaza_id,
|
|
|
- name: fromBase64( pwd ),
|
|
|
- activacion: dateToActived,//new Date( dateToActived ),
|
|
|
- dead: deadpwd //new Date( deadpwd ),
|
|
|
+ name: fromBase64(pwd),
|
|
|
+ activacion: dateToActived ? new Date(dateToActived).toLocaleDateString('es-GT',options) : "",//new Date( dateToActived ),
|
|
|
+ dead: deadpwd ? new Date(deadpwd).toLocaleDateString('es-GT', options) : "" //new Date( deadpwd ),
|
|
|
}
|
|
|
})
|
|
|
}
|