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

Failure in wordl_time.dart #29

Open
BeFlo10 opened this issue Oct 10, 2020 · 1 comment
Open

Failure in wordl_time.dart #29

BeFlo10 opened this issue Oct 10, 2020 · 1 comment

Comments

@BeFlo10
Copy link

BeFlo10 commented Oct 10, 2020

It seams that the minus sign is not handled, which means that every offset of the utc time is positive.

column 24 in wordl_time.dart.m

  String offset = data['utc_offset'].substring(1,3);

should be replaced with:

  String offset = data['utc_offset'].substring(0,3);
@ketan-glitch
Copy link

String offsethrs = data['utc_offset'].substring(1,3);
String offsetmins = data['utc_offset'].substring(4,6);

now = now.add(Duration(hours : int.parse(offsethrs), minutes : int.parse(offsetmins)));

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

No branches or pull requests

2 participants