package org.mozilla.mozstumbler;

import android.annotation.SuppressLint;

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

final class DateTimeUtils {
    private static final DateFormat mISO8601Format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'");

    static final long MILLISECONDS_PER_DAY = 86400000;  // milliseconds/day

    private DateTimeUtils() {
    }

    @SuppressLint("SimpleDateFormat")
    static String formatDate(Date date) {
        return mISO8601Format.format(date);
    }

    static String formatTime(long time) {
        return formatDate(new Date(time));
    }

    static String formatTimeForLocale(long time) {
        return DateFormat.getDateTimeInstance().format(time);
    }

    static String formatCurrentTime() {
        return formatTime(System.currentTimeMillis());
    }
}

@@ -154,16 +154,43 @@
 eFormat;
+%0Aimport java.util.TimeZone;
 %0A%0Afinal 
@@ -389,16 +389,101 @@
 ds/day%0A%0A
+    static %7B%0A        mISO8601Format.setTimeZone(TimeZone.getTimeZone(%22UTC%22));%0A    %7D%0A%0A
     priv

Fix timezone in submitted data