This commit is contained in:
@@ -407,7 +407,7 @@ public class HttpServer extends Server<String, HttpContext, HttpRequest, HttpRes
|
|||||||
t.setDaemon(true);
|
t.setDaemon(true);
|
||||||
return t;
|
return t;
|
||||||
});
|
});
|
||||||
final DateFormat gmtDateFormat = new SimpleDateFormat("EEE, dd-MMM-yyyy HH:mm:ss z", Locale.ENGLISH);
|
final DateFormat gmtDateFormat = new SimpleDateFormat("EEE, d MMM y HH:mm:ss z", Locale.ENGLISH);
|
||||||
gmtDateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
|
gmtDateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
|
||||||
currDateBytes = ("Date: " + gmtDateFormat.format(new Date()) + "\r\n").getBytes();
|
currDateBytes = ("Date: " + gmtDateFormat.format(new Date()) + "\r\n").getBytes();
|
||||||
this.dateScheduler.scheduleAtFixedRate(() -> {
|
this.dateScheduler.scheduleAtFixedRate(() -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user