Skip to content

Commit

Permalink
Fixes error mapping dates for scholarship information
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangomz committed Nov 9, 2021
1 parent 7e44ede commit 1aaff51
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,8 @@
* Fixes error mapping stories
* Map dates from string to DateTime
* Map media types from integer

## 0.0.6
> Release date: 08/Nov/2021
* Fixes error mapping dates
* Use `DateTime.parse()` instead of `DateTime()`
8 changes: 4 additions & 4 deletions lib/src/ummobile_user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ class UMMobileUser {
? Scholarship(
workplace: json['student']['scholarship']['workplace'],
position: json['student']['scholarship']['position'],
startDate:
DateTime(json['student']['scholarship']['startDate']),
endDate:
DateTime(json['student']['scholarship']['endDate']),
startDate: DateTime.parse(
json['student']['scholarship']['startDate']),
endDate: DateTime.parse(
json['student']['scholarship']['endDate']),
hours: json['student']['scholarship']['hours'],
status: json['student']['scholarship']['status'],
)
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: ummobile_sdk
description: The SDK package used in the UMMobile App to connect with the server.
version: 0.0.5
version: 0.0.6
homepage: https://github.com/UMMobile/ummobile_sdk

environment:
Expand Down

0 comments on commit 1aaff51

Please sign in to comment.