* A time bug 4.x-dev

Mon, 20 Jan 2020 11:21:57 +0200

author
cemkalyoncu
date
Mon, 20 Jan 2020 11:21:57 +0200
branch
4.x-dev
changeset 1330
cee2ca1855c4
parent 1329
c08092e2e4a6
child 1331
398c7ca25661

* A time bug

Source/Gorgon/Time/Time.cpp file | annotate | diff | comparison | revisions
--- a/Source/Gorgon/Time/Time.cpp	Sat Jan 18 03:03:48 2020 +0200
+++ b/Source/Gorgon/Time/Time.cpp	Mon Jan 20 11:21:57 2020 +0200
@@ -275,7 +275,8 @@
 		using std::setw;
 		
 		std::stringstream ss;
-		ss<<Hour<<":"<<Minute;
+		ss<<std::setfill('0');
+		ss<<Hour<<":"<<setw(2)<<Minute;
 		
 		return ss.str();
 	}

mercurial