-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conditional formatting errors when setting an invalid date string #1108
Comments
@dsmmcken it looks like we do support shorter date time formats as long as they have the TZ. Do we want to keep this restriction, or should we default to the local time zone if none is provided? Also, it looks like not all timezone suffixes work. |
It looks like the Java code supports a discreet set of timezone codes. In TZ_AL(DateTimeZone.forID("America/Anchorage")),
TZ_AT(DateTimeZone.forID("Canada/Atlantic")),
TZ_BT(DateTimeZone.forID("America/Sao_Paulo")),
TZ_CE(DateTimeZone.forID("Europe/Berlin")),
TZ_CH(DateTimeZone.forID("Europe/Zurich")),
TZ_CT(DateTimeZone.forID("America/Chicago")),
TZ_ET(DateTimeZone.forID("America/New_York")),
TZ_HI(DateTimeZone.forID("Pacific/Honolulu")),
TZ_HK(DateTimeZone.forID("Asia/Hong_Kong")),
TZ_IN(DateTimeZone.forID("Asia/Kolkata")),
TZ_JP(DateTimeZone.forID("Asia/Tokyo")),
TZ_KR(DateTimeZone.forID("Asia/Seoul")),
TZ_LON(DateTimeZone.forID("Europe/London")),
TZ_MN(DateTimeZone.forID("America/Chicago")),
TZ_MOS(DateTimeZone.forID("Europe/Moscow")),
TZ_MT(DateTimeZone.forID("America/Denver")),
TZ_NF(DateTimeZone.forID("Canada/Newfoundland")),
TZ_NL(DateTimeZone.forID("Europe/Amsterdam")),
TZ_NY(DateTimeZone.forID("America/New_York")),
TZ_PT(DateTimeZone.forID("America/Los_Angeles")),
TZ_SG(DateTimeZone.forID("Asia/Singapore")),
TZ_SHG(DateTimeZone.forID("Asia/Shanghai")),
TZ_SYD(DateTimeZone.forID("Australia/Sydney")),
TZ_TW(DateTimeZone.forID("Asia/Taipei")),
TZ_UTC(DateTimeZone.UTC); When we run an expression such as |
We can use
|
I have added datetime + timezone parsing for frontend validation. There is an open bug deephaven/deephaven-core#3472 to address an issue with the query engine's current timezone support. |
Added datetime string parsing / validation. fixes #1108
Description
Invalid DateTime strings cause conditional formatting errors that result in an unrecoverable state.
NOTE: #1091 and #1106 should fix related issues. Might be good to wait until those are merged before working on this fix.
Steps to reproduce
Expected results
Invalid DateTime strings should not be applied
Actual results
Formatting is auto-applied for invalid date format and a "Unable to open table. Error" is shown
Versions
Engine Version: 0.22.0
Web UI Version: 0.30.1
Java Version: 17.0.6
Barrage Version: 0.5.0
The text was updated successfully, but these errors were encountered: