summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/util
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-05-06 14:16:44 -0700
committerElliott Hughes <enh@google.com>2013-05-06 14:16:44 -0700
commit614d365088a1959ad44831fa9b1065ecbd4eefb8 (patch)
tree0d56177d1f4835610c4b14fd0b6634c4c9674bb2 /src/com/android/gallery3d/util
parent4a26d5e3cce401e2683190597e1e50b90f9900d8 (diff)
parentf959df75e30697a1276d3bc47ffa59104733f7ce (diff)
downloadandroid_packages_apps_Gallery2-614d365088a1959ad44831fa9b1065ecbd4eefb8.tar.gz
android_packages_apps_Gallery2-614d365088a1959ad44831fa9b1065ecbd4eefb8.tar.bz2
android_packages_apps_Gallery2-614d365088a1959ad44831fa9b1065ecbd4eefb8.zip
resolved conflicts for merge of f959df75 to jb-mr2-dev-plus-aosp
Change-Id: Ic56346cb59b2817482c3c33a2bcd1d552dd432da
Diffstat (limited to 'src/com/android/gallery3d/util')
-rw-r--r--src/com/android/gallery3d/util/SaveVideoFileUtils.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/util/SaveVideoFileUtils.java b/src/com/android/gallery3d/util/SaveVideoFileUtils.java
index c281dd3e7..9e8f73a3d 100644
--- a/src/com/android/gallery3d/util/SaveVideoFileUtils.java
+++ b/src/com/android/gallery3d/util/SaveVideoFileUtils.java
@@ -25,8 +25,8 @@ import android.provider.MediaStore.Video;
import android.provider.MediaStore.Video.VideoColumns;
import java.io.File;
-import java.sql.Date;
import java.text.SimpleDateFormat;
+import java.util.Date;
public class SaveVideoFileUtils {
// Copy from SaveCopyTask.java in terms of how to handle the destination
@@ -50,8 +50,7 @@ public class SaveVideoFileUtils {
} else {
dstFileInfo.mFolderName = dstFileInfo.mDirectory.getName();
}
- dstFileInfo.mFileName = new SimpleDateFormat(fileNameFormat).format(
- new Date(System.currentTimeMillis()));
+ dstFileInfo.mFileName = new SimpleDateFormat(fileNameFormat).format(new Date());
dstFileInfo.mFile = new File(dstFileInfo.mDirectory, dstFileInfo.mFileName + ".mp4");
return dstFileInfo;