Commit 7deb9485 authored by Gergo Ujhelyi's avatar Gergo Ujhelyi
Browse files

Fix timestamp issue


Signed-off-by: Gergo Ujhelyi's avatarGergo Ujhelyi <ujhelyi.gergo@ericsson.com>
parent 8a06cb20
......@@ -866,7 +866,7 @@ public final class TTCN_Logger {
break;
}
case TIMESTAMP_TIME: {
final long timestamp = (long)seconds * 1000 + microseconds;
final long timestamp = (long)seconds * 1000 + (long)(microseconds/1000);
if (timestamp != lastTimestamp) {
calendar.setTimeInMillis(timestamp);
final StringBuilder temp = new StringBuilder();
......@@ -879,7 +879,7 @@ public final class TTCN_Logger {
break;
}
case TIMESTAMP_DATETIME: {
final long timestamp = (long)seconds * 1000 + microseconds;
final long timestamp = (long)seconds * 1000 + (long)(microseconds/1000);
if (timestamp != lastTimestamp) {
calendar.setTimeInMillis(timestamp);
final StringBuilder temp = new StringBuilder();
......
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