Add timezone field for users #3290
-
Description The apis User object should contain a timezone field, which would be his last used timezone or maybe changable with a setting in the client. It should make it possible to interpret times the user writes. Why This is Needed I have a Discord bot which has a remember feature. So if for example a user writes he wants to be remembered at 8:12 pm to go with his dog, the bot currently can just remember the user at 8:12 pm UTC because I dont know the current time at the users place. This could be used for many features of bots where the user would want to provide a fixed time. So the current problem is basically that a time written by a user cant be interpreted correctly. Alternatives Considered I think there are 2 alternatives:
Additional Details |
Beta Was this translation helpful? Give feedback.
Replies: 13 comments 2 replies
-
Exposing user locale or timezone is kind of a security risk since it exposes approximate location, but some sort of timestamp field would be nice. |
Beta Was this translation helpful? Give feedback.
-
you know timestamp does that too, right? :P with even higher precision than locale. |
Beta Was this translation helpful? Give feedback.
-
Would it not be possible to just have a bot command like ~!timezone` where the user can set their timezone if they wish? |
Beta Was this translation helpful? Give feedback.
-
I understand your concern but I think the |
Beta Was this translation helpful? Give feedback.
-
Of course its possible, but as a user I wouldnt like to have to enter my timezone. I would prefer it automated. |
Beta Was this translation helpful? Give feedback.
-
i strongly disagree. Locale pins you to any country anywhere in the world. Timezone exactly pinpoints your location. If a user was +5 3/4 H you would be able to determine they are in nepal, or even +9 1/2h would be South Australia, Australia. |
Beta Was this translation helpful? Give feedback.
-
What about allowing them but privacy-gating per-user? That way, each user can choose whether to expose that (to nobody else, to friends, to guild members, to friends of friends, or to everyone). |
Beta Was this translation helpful? Give feedback.
-
maybe this is something that could be done in slash commands? have a datetime type, the client can then use the users local timezone and just return UTC for bots to use, allows easy time picking without exposing anything to the bot |
Beta Was this translation helpful? Give feedback.
-
I'd agree with a |
Beta Was this translation helpful? Give feedback.
-
Sending localized times is already possible, in embeds. See https://discord.com/developers/docs/resources/channel#embed-object-embed-structure for that ability. |
Beta Was this translation helpful? Give feedback.
-
It is, but that only gets you one per embed, though. Wouldn't allow for eg. a list of things where each has an associated local timestamp, including it as part of a sentence (eg. "this user was last seen at XX:YY pm"). |
Beta Was this translation helpful? Give feedback.
-
its not about sending timestamps, its about receiving them from a user |
Beta Was this translation helpful? Give feedback.
-
note that embeds don't allow you to show a date time more than like 24h away while preserving the time. If it's Monday and I set an embed time to Thursday at 7pm EST, users will just see "Thursday" until Thursday rolls around, at which point they'll see "Today at 7pm" (assuming they're in EST, etc) Point is if you're scheduling events for the future it's nearly useless |
Beta Was this translation helpful? Give feedback.
maybe this is something that could be done in slash commands? have a datetime type, the client can then use the users local timezone and just return UTC for bots to use, allows easy time picking without exposing anything to the bot