Beakerboy / Beakerboy/VBA-SQL-Library

SQLHelperFunctions — wrong Format masks in toISO

Abierto
#67 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
VBA
Estrellas
90
Forks
18
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

SQLHelperFunctions: correct toISO Format masks (mm vs nn)
- Component: `src/Modules/SQLHelperFunctions.bas` (top)

### Problem
- Uses month/minute masks incorrectly; minutes display as month.

### Snippet (actual)
```vb
Public Function toISO(dt) As String
toISO = Format(dt, "YYYY-MM-DD") & "T" & Format(dt, "HH:MM:SS")
End Function
```

### Expected
```vb
Public Function toISO(dt) As String
toISO = Format(dt, "yyyy-mm-dd") & "T" & Format(dt, "hh:nn:ss")
End Function
```

### Steps to Reproduce
1) Print `toISO(Now)` and compare minutes field.

### Actual
- Minutes are incorrect.

### Proposed Fix
- Use `mm` for month and `nn` for minutes.

---

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Open src/Modules/SQLHelperFunctions.bas and inspect the toISO function at the top. Reproduce the issue with Print toISO(Now), then verify the output's month and minute fields use the expected masks and match ISO-style output.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
sql, visualbasic
Área
databases
Tipo de issue
Error
Dificultad
1/5
Tiempo estimado
Menos de una hora
Estado de actividad
Estancado
Claridad
Bien especificado
Aptitud para principiantes
55/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.