diff --git a/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfWriter.java b/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfWriter.java index 29bc59c27a..ba0852764f 100644 --- a/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfWriter.java +++ b/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfWriter.java @@ -149,7 +149,7 @@ public Osmformat.Info.Builder serializeMetadata(OsmPrimitive e) { b.setUid((int) e.getUser().getId()); b.setUserSid(stable.getIndex(e.getUser().getName())); } - b.setTimestamp((int) (e.getInstant().toEpochMilli() / date_granularity)); + b.setTimestamp(e.getInstant().toEpochMilli() / date_granularity); b.setVersion(e.getVersion()); b.setChangeset(e.getChangesetId()); }