-
Notifications
You must be signed in to change notification settings - Fork 394
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
Add support for setting timezone
on DateTimePicker input
#1753
Comments
Hey @brunano21 , thanks for writing in. I am not 100% sure this is a bug - as the setting elaborates in the help-text under the input in the screenshot you posted, the Slack-specified timezone is used for only three things. I have posed this question internally to clarify whether the timezone should be based on system time or the Slack preference setting. Once I have more info I'll report back. |
Hi @filmaj, thanks for getting back. As per my understanding, the timezone settings are used, for example, for formatting all messages' timestamps. So I would expect that the same would occur for formatting the initial value of the |
Did that work for you? I tried changing my timezone settings in my Slack client and restarting it, and it didn't change any (visible) message timestamps 🤔 |
Yes, you are right. However, I wonder how I can enforce a specific timezone for formatting the In regards to this
... Is there any way to hide the help text? |
FYI I am still looking into / chasing down confirmation into exactly how all this works - as soon as I find more info I'll report back here. The DateTimePicker does not support the |
Update here: I have confirmation that the timezone for all Block Kit elements should be based on computer/system time, not based on the timezone set in Slack preferences. Also: there is consensus that the DateTimePicker element should have the ability to customize its |
timezone
on DateTimePicker input
hello, 👋 |
Hello @oneubauer ! This addition is still in the backlog and has not been prioritized to address at this time. I have raised the fact you have also expressed interest in this issue with the relevant team in the hopes that more voices = more prioritization. If/when I see movement on this feature internally, I will certainly update this issue thread. |
Hello. I'd like to express interest in this feature to have it available at least as a block. Having this new block but being unable to use it as expected from the other related timepicker and datepicker really detracts from its usage. |
Hi, I have the same issue. |
Reproducible in:
The Slack SDK version
or refer to your
package.json
Node.js runtime version
OS info
Steps to reproduce:
As shown in the picture below, I have set a specific timezone in my Slack App settings.
My OS timezone is:
When using the
DateTimePicker
input, the timezone displayed under the time-picker differs from what we have set in the User Preferences.Because of this, the input's
initial_date_time
value is wrong and not respecting Slack's user-preferred timezone.Also, the DateTimePicker input
timezone
field cannot be set/unset and it's always displayed - this does not happen for aTimepicker
instanceExpected result:
The DateTimePicker should use the User Preferences' timezone, instead of the OS's one.
Actual result:
The DateTimePicker parses the
initial_date_time
value using the wrong timezone.The text was updated successfully, but these errors were encountered: