Selaa lähdekoodia

BETA: Reverting [5157] and fixing minor typo in [5156].

'''Note:''' Fix typos, don't revert improvements.
Zoey76 13 vuotta sitten
vanhempi
sitoutus
22198a70d7
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4 4
      L2J_Server_BETA/java/com/l2jserver/gameserver/util/Util.java

+ 4 - 4
L2J_Server_BETA/java/com/l2jserver/gameserver/util/Util.java

@@ -412,12 +412,12 @@ public final class Util
 	 */
 	public static String formatDate(Date date, String format)
 	{
-		final DateFormat dateFormat = new SimpleDateFormat(format);
-		if (date != null)
+		if (date == null)
 		{
-			return dateFormat.format(date);
+			return null;
 		}
-		return null;
+		final DateFormat dateFormat = new SimpleDateFormat(format);
+		return dateFormat.format(date);
 	}
 	
 	/**