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

Possible bug when widget updates #7

Open
alekseifm opened this issue Sep 12, 2020 · 3 comments · May be fixed by #10
Open

Possible bug when widget updates #7

alekseifm opened this issue Sep 12, 2020 · 3 comments · May be fixed by #10

Comments

@alekseifm
Copy link

Awesome package! Thanks!

I am using the HeatMapCalendar, but sometimes when it updates, values disappear and dates are shifted by one.
Can someone help me or it is a known bug?

Thanks!

image
image

@jonnyjohnson1
Copy link

Yeah, the state doesn't load the data properly. Sometimes it's there and sometimes it doesn't.

@cd104
Copy link

cd104 commented Nov 14, 2020

Appears to be caused by a typo in TimeUtils...

/// Returns date without timezone info (UTC format)
  static DateTime removeTZ(DateTime dateTime) {
    return DateTime.utc(dateTime.year, dateTime.month, dateTime.day, dateTime.hour, dateTime.minute,
        dateTime.second, dateTime.millisecond, dateTime.millisecond); <<<< should be dateTime.microsecond
  }

@jonnyjohnson1
Copy link

That's it!

@Delgan Delgan linked a pull request Dec 5, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants