Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Inigo Lopez de Heredia committed Oct 20, 2014
2 parents bfc2d58 + 028825e commit 475fbdf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.akvo.flow"
android:versionCode="1"
android:versionName="2.0.4" >
android:versionName="2.0.4.1" >

<uses-sdk
android:minSdkVersion="8"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/org/akvo/flow/api/S3Api.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;

import javax.crypto.Mac;
Expand Down Expand Up @@ -140,7 +141,7 @@ public boolean put(String objectKey, File file, String type, boolean isPublic) t
}

private String getDate() {
final DateFormat df = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss ");
final DateFormat df = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss ", Locale.US);
df.setTimeZone(TimeZone.getTimeZone("GMT"));
return df.format(new Date()) + "GMT";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private void checkAndDownload(String surveyId) {
downloadHelp(survey);
updateCount++;
} catch (Exception e) {
Log.e(TAG, "Error downloading survey: " + survey.getFileName(), e);
Log.e(TAG, "Error downloading survey: " + survey.getId(), e);
fireNotification(getString(R.string.cannotupdate), FAIL_ID);
PersistentUncaughtExceptionHandler
.recordException(new TransferException(survey.getId(), null, e));
Expand Down

0 comments on commit 475fbdf

Please sign in to comment.