package me.jesensky.dan.playertracker.events;

import me.jesensky.dan.playertracker.net.Connection;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 * Created by 14jesenskyd on 4/9/2014.
 */
public class ConnectionEvent {
    private Connection connection;
    private Calendar calendar;

    public ConnectionEvent(Connection c, Calendar cal) {
        this.connection = c;
        this.calendar = cal;
    }

    public ConnectionEvent(Connection c) {
        this(c, Calendar.getInstance());
    }
}
@@ -81,157 +81,100 @@
 ker.
-net.Connection;%0A%0Aimport java.text.SimpleDateFormat;%0Aimport java.util.Calendar;%0Aimport java.util.Date;%0A%0A/**%0A * Created by 14jesenskyd on 4/9/2014.%0A */
+TimeUtils;%0Aimport me.jesensky.dan.playertracker.net.Connection;%0A%0Aimport java.util.Calendar;%0A
 %0Apub
@@ -252,25 +252,19 @@
 ate 
-Calendar calendar
+String time
 ;%0A%0A 
@@ -307,20 +307,25 @@
  c, 
-Calendar cal
+String timeFormat
 ) %7B%0A
@@ -370,22 +370,44 @@
 his.
-calendar = cal
+time = TimeUtils.getTime(timeFormat)
 ;%0A  
@@ -474,31 +474,166 @@
 (c, 
-Calendar.getInstance())
+%22dd MM yyyy%22);%0A    %7D%0A%0A    public String getTimestamp()%7B%0A        return this.time;%0A    %7D%0A%0A    public Connection getConnection()%7B%0A        return this.connection
 ;%0A  

Update ConnectionEvent event class from what was an old implementation.