<commit_before>package controllers;

import data.EventData;
import models.Event;
import play.mvc.*;

import java.text.DateFormat;
import java.text.MessageFormat;
import java.text.SimpleDateFormat;
import java.util.*;

public class EventController extends Controller {

    public static void get() {
        EventData eventData = Event.getEvent();

        String jsonString = MessageFormat.format("'{'\"startTime\": \"{0}\", \"endTime\": \"{1}\"'}'",
                getDateTimeAsIsoString(eventData.startTime),
                getDateTimeAsIsoString(eventData.endTime));
        renderJSON(jsonString);
    }

    private static String getDateTimeAsIsoString(Calendar dateTime) {
        DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'");
        df.setTimeZone(TimeZone.getTimeZone("UTC"));
        return df.format(dateTime.getTime());
    }
}<commit_msg>Fixed time format bug<commit_after>package controllers;

import data.EventData;
import models.Event;
import play.mvc.*;

import java.text.DateFormat;
import java.text.MessageFormat;
import java.text.SimpleDateFormat;
import java.util.*;

public class EventController extends Controller {

    public static void get() {
        EventData eventData = Event.getEvent();

        String jsonString = MessageFormat.format("'{'\"startTime\": \"{0}\", \"endTime\": \"{1}\"'}'",
                getDateTimeAsIsoString(eventData.startTime),
                getDateTimeAsIsoString(eventData.endTime));
        renderJSON(jsonString);
    }

    private static String getDateTimeAsIsoString(Calendar dateTime) {
        DateFormat df = new SimpleDateFormat("yyyy-MM-dd' HH:mm:ss");
        df.setTimeZone(TimeZone.getTimeZone("UTC"));
        return df.format(dateTime.getTime());
    }
}
{'fraction_non_alphanumeric': 0.13150371640937678, 'fraction_numerical': 0.002287021154945683, 'mean_word_length': 3.569190600522193, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6949876', 'n_tokens_mistral': 514, 'n_tokens_neox': 497, 'n_words': 102}