Beakerboy / Beakerboy/VBA-SQL-Library

SQLHelperFunctions — wrong Format masks in toISO

Aperta
#67 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
VBA
Stelle
90
Fork
18
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

---

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.