Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Incorporate timestamp in Logging Facade #55

Open
rohankasture opened this issue Aug 7, 2018 · 0 comments
Open

Incorporate timestamp in Logging Facade #55

rohankasture opened this issue Aug 7, 2018 · 0 comments

Comments

@rohankasture
Copy link

The filter for timestamp is not working. I wrote below code for timestamp

if(filter.logsBefore!=null){
ZonedDateTime dateTime = Instant.ofEpochMilli(log.getTime())
.atZone(ZoneId.of("-5:00"));
tempLog.setTimestamp(dateTime);
if((dateTime.compareTo(filter.logsBefore))<=0)
logs.add(tempLog);
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant