diff options
author | Elliott Hughes <enh@google.com> | 2012-12-03 07:52:36 -0800 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2012-12-03 07:52:36 -0800 |
commit | e7c4f8ca0660298604b0081a80591b39aefda661 (patch) | |
tree | 7125a25ad6935f58dc4b4c47f7619ca9162fe297 | |
parent | e9eceb552f80f8fb1e33b530ef18f1d0ae406408 (diff) | |
parent | da36e534e2edd3df0eb810ba2237b0c5bd403a63 (diff) | |
download | VideoEditor-e7c4f8ca0660298604b0081a80591b39aefda661.tar.gz |
Merge "Make locale safe paths"jb-mr1-dev-plus-aosp
-rwxr-xr-x | src/com/android/videoeditor/VideoEditorActivity.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/videoeditor/VideoEditorActivity.java b/src/com/android/videoeditor/VideoEditorActivity.java index 193bae3..ca0b770 100755 --- a/src/com/android/videoeditor/VideoEditorActivity.java +++ b/src/com/android/videoeditor/VideoEditorActivity.java @@ -18,6 +18,7 @@ package com.android.videoeditor; import java.util.ArrayList; import java.util.Date; +import java.util.Locale; import java.util.NoSuchElementException; import java.util.Queue; import java.util.concurrent.LinkedBlockingQueue; @@ -665,7 +666,7 @@ public class VideoEditorActivity extends VideoEditorBaseActivity private String getVideoOutputMediaFileTitle() { long dateTaken = System.currentTimeMillis(); Date date = new Date(dateTaken); - SimpleDateFormat dateFormat = new SimpleDateFormat("'VID'_yyyyMMdd_HHmmss"); + SimpleDateFormat dateFormat = new SimpleDateFormat("'VID'_yyyyMMdd_HHmmss", Locale.US); return dateFormat.format(date); } |