mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-26 14:59:22 +00:00
Improve precision
This commit is contained in:
parent
ba07247ec4
commit
9a991b221c
@ -251,11 +251,8 @@ class _PostCreateFormWidgetState extends State<PostCreateFormWidget> {
|
|||||||
setState(() {
|
setState(() {
|
||||||
_timeEnd = newDate.add(Duration(
|
_timeEnd = newDate.add(Duration(
|
||||||
hours: newTime.hour - newDate.hour,
|
hours: newTime.hour - newDate.hour,
|
||||||
minutes: newTime.minute - newDate.minute));
|
minutes: newTime.minute - newDate.minute,
|
||||||
|
seconds: -newDate.second));
|
||||||
print(newDate.toString());
|
|
||||||
print(newTime);
|
|
||||||
print(_timeEnd);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user