Skip to content
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

TimeZone, Locale を設定する #54

Open
kobi32768 opened this issue Feb 23, 2024 · 6 comments
Open

TimeZone, Locale を設定する #54

kobi32768 opened this issue Feb 23, 2024 · 6 comments
Labels
area-database This issue is related to database enhancement New feature or request

Comments

@kobi32768
Copy link
Owner

LANG=ja_JP.utf8
ZONE="Asia/Tokyo"

で固定しちゃってもいいんだけど多分変更できた方がうれしいと思う

@Sayamame-beans Sayamame-beans added the enhancement New feature or request label Feb 29, 2024
@Sayamame-beans
Copy link
Collaborator

サーバー単位…?

@Sayamame-beans Sayamame-beans added the area-database This issue is related to database label Feb 29, 2024
@kobi32768
Copy link
Owner Author

あ〜
やるならそうなるか……?
いい感じにユーザのローカルタイムで表示する方法ないかな

@Sayamame-beans
Copy link
Collaborator

これ、discord.pyのものですが

The timestamp of the embed content. This is an aware datetime. If a naive datetime is passed, it is converted to an aware datetime with the local timezone.
https://discordpy.readthedocs.io/en/latest/api.html#discord.Embed.timestamp

なので、もしかして何もしなくて良いのでは…?

@Sayamame-beans
Copy link
Collaborator

Sayamame-beans commented Feb 29, 2024

いや、そうか…? localってどのlocalだ

@slord399
Copy link

こういう感じになるようですね。 (discord.py)
https://qiita.com/Nirezi/items/41f3659e5042d456f7fa

@Sayamame-beans
Copy link
Collaborator

クライアント側で自動で変えてくれるのであれば、何もしなくて良さそうですね…?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-database This issue is related to database enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants