Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6767 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6767 Rev 6775
Línea 6... Línea 6...
6
    years = [...years, index]
6
    years = [...years, index]
7
  }
7
  }
8
  return years
8
  return years
9
}
9
}
Línea 10... Línea 10...
10
 
10
 
11
function getMonths() {
11
const getMonths = () => {
12
  const months = Array.from({ length: 12 }, (item, i) => {
12
  const months = Array.from({ length: 12 }, (item, i) => {
13
    return new Date(0, i).toLocaleString('es-ES', { month: 'long' })
13
    return new Date(0, i).toLocaleString('es-ES', { month: 'long' })
Línea 14... Línea 14...
14
  })
14
  })
15
 
15
 
-
 
16
  return months
16
  return months
17
}
17
}
18
 
18
function getMonthName(monthNumber) {
19
const getMonthName = (monthNumber) => {
Línea 19... Línea 20...
19
  const date = new Date()
20
  const date = new Date()
-
 
21
  date.setMonth(monthNumber - 1)
20
  date.setMonth(monthNumber - 1)
22
 
21
 
-
 
22
  return date.toLocaleString('es-ES', {
23
  const month = date.toLocaleString('es-ES', { month: 'long' })
Línea 23... Línea 24...
23
    month: 'long',
24