TimeOfDay bug fix

This commit is contained in:
Hillel Coren 2019-02-27 08:56:42 +02:00
parent aeeddde01b
commit bf247ae3f7
5 changed files with 7 additions and 6 deletions

View File

@ -29,8 +29,8 @@ android {
applicationId "com.invoiceninja.flutter"
minSdkVersion 18
targetSdkVersion 27
versionCode 37
versionName "0.1.37"
versionCode 38
versionName "0.1.38"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

View File

@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.1.37</string>
<string>0.1.38</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>37</string>
<string>38</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>

View File

@ -1,7 +1,7 @@
import 'package:flutter/material.dart';
// This version must be updated in tandem with the pubspec version.
const String kAppVersion = '0.1.37';
const String kAppVersion = '0.1.38';
const String kAppUrl = 'https://app.invoiceninja.com';
const String kAppleStoreUrl =

View File

@ -209,6 +209,7 @@ String formatDuration(Duration duration, {bool showSeconds = true}) {
}
DateTime convertTimeOfDayToDateTime(TimeOfDay timeOfDay, DateTime dateTime) {
dateTime ??= DateTime.now();
return DateTime(dateTime.year, dateTime.month, dateTime.day,
timeOfDay?.hour ?? 0, timeOfDay?.minute ?? 0)
.toUtc();

View File

@ -1,6 +1,6 @@
name: invoiceninja_flutter
description: Mobile app for Invoice Ninja
version: 0.1.37
version: 0.1.38
author: Hillel Coren
homepage: https://www.invoiceninja.com
documentation: http://docs.invoiceninja.com