Changeset 5157


Ignore:
Timestamp:
Jan 28, 2012 5:28:20 AM (4 months ago)
Author:
MELERIX
Message:

BETA: Minor Fix for Util.java, (when date is not null shouldn't return null).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/unstable/L2J_Server_BETA/java/com/l2jserver/gameserver/util/Util.java

    r5156 r5157  
    413413        public static String formatDate(Date date, String format) 
    414414        { 
     415                final DateFormat dateFormat = new SimpleDateFormat(format); 
    415416                if (date != null) 
    416417                { 
    417                         return null; 
    418                 } 
    419                 final DateFormat dateFormat = new SimpleDateFormat(format); 
    420                 return dateFormat.format(date); 
     418                        return dateFormat.format(date); 
     419                } 
     420                return null; 
    421421        } 
    422422         
Note: See TracChangeset for help on using the changeset viewer.