You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm creating two separate rows...a TimeRow and a ButtonRow. On the button tap I set the TimeRow value to Date(). The date displays but it's always one hour behind my current time zone. I'm in EST, and it's formatting to be displayed in CST. I've checked the actual Date() value and it's correct.
<<< TimeRow(CellTags.time, { row in
row.title = "Time"
})
<<< ButtonRow(CellTags.timeButton, { row in
row.title = "Set Time to Now + 2 Min"
}).onCellSelection({ [weak self] cell, row in
guard let self else { return }
(form.rowBy(tag: CellTags.time) as? TimeRow)?.value = Date()
(form.rowBy(tag: CellTags.time) as? TimeRow)?.updateCell()
})
When printing the time out, in the .onChange() in the TimeRow, I see this... Optional(2024-07-19 21:46:07 +0000)
Am I missing something here? I've tried setting the cells default dateFormatters timeZone and Locale and nothing changes.
The text was updated successfully, but these errors were encountered:
I'm creating two separate rows...a
TimeRow
and aButtonRow
. On the button tap I set theTimeRow
value toDate()
. The date displays but it's always one hour behind my current time zone. I'm in EST, and it's formatting to be displayed in CST. I've checked the actualDate()
value and it's correct.When printing the time out, in the
.onChange()
in theTimeRow
, I see this...Optional(2024-07-19 21:46:07 +0000)
Am I missing something here? I've tried setting the cells default
dateFormatter
stimeZone
andLocale
and nothing changes.The text was updated successfully, but these errors were encountered: