| 
					
				 | 
			
			
				@@ -10,7 +10,14 @@ namespace vstd 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		std::tm tm = *std::localtime(&dt); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		std::stringstream s; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		s.imbue(std::locale("")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		try 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			s.imbue(std::locale("")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		catch(const std::runtime_error & e) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			// locale not be available - keep default / global 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		s << std::put_time(&tm, "%x %X"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		return s.str(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 |