Beakerboy / Beakerboy/VBA-SQL-Library

SQLHelperFunctions — wrong Format masks in toISO

Offen
#67 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
VBA
Sterne
90
Forks
18
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

---

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.