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

vehicle.timestamp is missing tzinfo #441

Closed
1 of 4 tasks
FlyingDiver opened this issue May 24, 2022 · 1 comment · Fixed by #447
Closed
1 of 4 tasks

vehicle.timestamp is missing tzinfo #441

FlyingDiver opened this issue May 24, 2022 · 1 comment · Fixed by #447
Assignees
Labels
bug 🐛 Something isn't working

Comments

@FlyingDiver
Copy link

Describe the issue

The timestamp is in UTC, but vehicle.timestamp.tzinfo returns None.

Which means I need to do

vehicle.timestamp.replace(tzinfo=datetime.timezone.utc).astimezone().strftime("%d %b %Y %H:%M:%S %Z")

To get a timestamp string with proper TZ

Expected behavior

vehicle.timestamp.tzinfo should return timezone.utc

Which Home Assistant version are you using?

None

What was the last working version of Home Assistant Core?

No response

What is your region?

North America

MyBMW website

  • I can still successfully login to the BMW MyBMW website and the car status is available there.
  • I have MyBMW enabled for my vehicle.

Number of cars

  • I have 2 or more cars linked to the MyBMW account.
  • I have a Mini vehicle linked to my account.

Output of bimmer_connected fingerprint

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@FlyingDiver FlyingDiver added the bug 🐛 Something isn't working label May 24, 2022
@rikroe rikroe self-assigned this May 25, 2022
@rikroe rikroe mentioned this issue May 28, 2022
6 tasks
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants