Beakerboy / Beakerboy/VBA-SQL-Library
SQLHelperFunctions — wrong Format masks in toISO
- 主要语言
- VBA
- 星标
- 90
- 派生
- 18
- PR 合并指标
- 30 天内没有已合并 PR
描述
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.
---
贡献指南
这个仓库没有索引到贡献指南
调研方向
打开 src/Modules/SQLHelperFunctions.bas 并检查顶部的 toISO 函数。使用 Print toISO(Now) 重现该问题,然后验证输出中的月份字段和分钟字段是否使用了预期的掩码,并与 ISO 风格的输出一致。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- sql, visualbasic
- 领域
- databases
- Issue 类型
- 缺陷
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 55/100