package io.castle.client.internal.utils;

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

public class Timestamp {
    private static final DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'", Locale.US);

    /**
     * Return an ISO 8601 combined date and time string for current date/time
     *
     * @return String with format "yyyy-MM-dd'T'HH:mm:ss'Z'"
     */
    public static String timestamp() {
        return timestamp(new Date());
    }

    /**
     * Return an ISO 8601 combined date and time string for specified date/time
     *
     * @param date Date
     * @return String with format "yyyy-MM-dd'T'HH:mm:ss'Z'"
     */
    private static String timestamp(Date date) {
        dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
        return dateFormat.format(date);
    }
}

@@ -296,23 +296,49 @@
 m:ss
+.SSS
 'Z'%22,
+ new
  Locale
-.US
+(%22en%22, %22US%22, %22POSIX%22)
 );%0A%0A
@@ -478,32 +478,36 @@
 MM-dd'T'HH:mm:ss
+.SSS
 'Z'%22%0A     */%0A   
@@ -762,16 +762,20 @@
 HH:mm:ss
+.SSS
 'Z'%22%0A   
@@ -780,30 +780,29 @@
     */%0A    p
-rivate
+ublic
  static Stri

Include milliseconds in timestamp