Commit 3c0ebf66 authored by ics's avatar ics
Browse files

date/time of chat event

parent 5080ce96
......@@ -24,9 +24,6 @@ import;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
......@@ -532,11 +529,7 @@ public class DataNotificationClient {
while (it.hasNext()) {
ChatEventListener listener =;
// Convert the date in seconds from 1st january 1970 to a LocalDateTime object.
ChatEvent event = new ChatEvent(owner, message, LocalDateTime.ofEpochSecond(date, 0, ZoneOffset.UTC));
ZonedDateTime zt = ZonedDateTime.of(LocalDateTime.ofEpochSecond(date, 0, ZoneOffset.UTC), ZoneId.systemDefault());
ChatEvent event = new ChatEvent(owner, message,;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment