Fixed prevent issue
[apps/osp/Gallery.git] / src / GlCommonUtil.cpp
index 3cbd8de..c148472 100644 (file)
@@ -1,7 +1,7 @@
 //
 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
 //
-// Licensed under the Flora License, Version 1.0 (the License);
+// Licensed under the Flora License, Version 1.1 (the License);
 // you may not use this file except in compliance with the License.
 // You may obtain a copy of the License at
 //
@@ -19,8 +19,6 @@
  * @brief              This is the implementation file for CommonUtil class.
  */
 
-#include <FApp.h>
-#include <FUi.h>
 #include <GlTypes.h>
 
 #include "GlCommonUtil.h"
@@ -34,7 +32,7 @@ static const int W_DEFAULT_THUMBNAIL = 171;
 static const int H_DEFAULT_THUMBNAIL = 127;
 static const int BASE_STANDARD = 1000;
 static const int FORMAT_TIME = 10;
-static const String DATETIME_FORMAT = L"%02d:%02d";
+static const String DATETIME_FORMAT = L"%02d:%02d:%02d";
 
 Bitmap*
 CommonUtil::GetEmptyThumbnailN(void)
@@ -58,11 +56,11 @@ CommonUtil::GetEmptyThumbnailN(void)
 }
 
 String
-CommonUtil::DurationToTimeString(long duration)
+CommonUtil::DurationToTimeString(const long duration)
 {
        String strTime;
        DateTime dateTime;
        dateTime.AddSeconds(duration / BASE_STANDARD);
-       strTime.Format(FORMAT_TIME, DATETIME_FORMAT.GetPointer(), dateTime.GetMinute(), dateTime.GetSecond());
+       strTime.Format(FORMAT_TIME, DATETIME_FORMAT.GetPointer(), dateTime.GetHour(), dateTime.GetMinute(), dateTime.GetSecond());
        return strTime;
 }