Title: Naive datetime should be treated as local timezone. UTC datetimes should be timezone aware. · Issue #1658 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: Naive datetime should be treated as local timezone. UTC datetimes should be timezone aware. · Issue #1658 · python-telegram-bot/python-telegram-bot
X Title: Naive datetime should be treated as local timezone. UTC datetimes should be timezone aware. · Issue #1658 · python-telegram-bot/python-telegram-bot
Description: Caused by #1506(#1505) #1485(#1362) I believe local timezone is the expected default for naive datetime objects. Breaking those expectations will lead to unnecessary surprises for the users. It will also lead to awkward conversions if an...
Open Graph Description: Caused by #1506(#1505) #1485(#1362) I believe local timezone is the expected default for naive datetime objects. Breaking those expectations will lead to unnecessary surprises for the users. It wil...
X Description: Caused by #1506(#1505) #1485(#1362) I believe local timezone is the expected default for naive datetime objects. Breaking those expectations will lead to unnecessary surprises for the users. It wil...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/1658
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Naive datetime should be treated as local timezone. UTC datetimes should be timezone aware.","articleBody":"Caused by #1506(#1505) #1485(#1362)\r\n\r\nI believe local timezone is the expected default for naive datetime objects. Breaking those expectations will lead to unnecessary surprises for the users. It will also lead to awkward conversions if another library that does follow this convention is used. \r\n\r\nPython's `datetime.fromtimestamp` and `datetime.astimezone` assume local timezone for naive objects. There are three warnings in [datetime docs](https://docs.python.org/3/library/datetime.html) that start with \"Because naive datetime objects are treated by many datetime methods as local times, it is preferred to use aware datetimes to represent times in UTC.\"\r\n\r\nUsing utc time is surely more sane than using local time, but the better way to do that is timezone aware datetimes, not naive-utc datetimes. For example Message.date should be timezone aware.","author":{"url":"https://github.com/n5y","@type":"Person","name":"n5y"},"datePublished":"2019-12-08T12:06:45Z","url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/1658"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9abf2d8b-86cb-57d8-80db-369a052482fb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9302:3DA1E8:252254C:31014B9:6B025F34 |
| html-safe-nonce | b7fe29cb882bca1800d6b5b88e627791d737ed762d866cd0b4823c03efbe6f9e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzAyOjNEQTFFODoyNTIyNTRDOjMxMDE0Qjk6NkIwMjVGMzQiLCJ2aXNpdG9yX2lkIjoiNjczNTcxMTg5Njg4MTc0OTgxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5b214274248ec13fe814af7a5101767baafd21a6f6ce181aa9efe05deaee00f9 |
| hovercard-subject-tag | issue:534532169 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-telegram-bot/python-telegram-bot/1658/issue_layout |
| twitter:image | https://opengraph.githubassets.com/381ad30b0b6b13de57479fbd076ecf57eb0d2622e9b53bcf453cc98be4f92012/python-telegram-bot/python-telegram-bot/issues/1658 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/381ad30b0b6b13de57479fbd076ecf57eb0d2622e9b53bcf453cc98be4f92012/python-telegram-bot/python-telegram-bot/issues/1658 |
| og:image:alt | Caused by #1506(#1505) #1485(#1362) I believe local timezone is the expected default for naive datetime objects. Breaking those expectations will lead to unnecessary surprises for the users. It wil... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | n5y |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-telegram-bot/python-telegram-bot git https://github.com/python-telegram-bot/python-telegram-bot.git |
| octolytics-dimension-user_id | 16178365 |
| octolytics-dimension-user_login | python-telegram-bot |
| octolytics-dimension-repository_id | 38696925 |
| octolytics-dimension-repository_nwo | python-telegram-bot/python-telegram-bot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38696925 |
| octolytics-dimension-repository_network_root_nwo | python-telegram-bot/python-telegram-bot |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width