ess-dmsc/kafkacow

Incorrect year displayed in ISO8601 timestamp for message

Closed this issue · 1 comments

Reported by Morten Christensen:

using the -d option I get (from other topic) something like this
Sun 2-Jan-50304310 23:33:20.0  ||  50304310-01-02T23:33:20.0                                  ||

Timestamp: 1587388529000000000 || PartitionID:     0 || Offset:     137 || File Identifier: ev42 ||
{
    detector_id: [
        3618
        3901
        3873
        4064
        3745
        3680
        3403
        3307
        3489
        3389
        ...
        Truncated 1508 elements.
    ]
    message_id: 71
    pulse_time: 1587388529000000000
    source_name: multiblade
    time_of_flight: [
        7050896
        7427600
        8209136
        8707632
        8760640
        8872272
        9857680
Looks like the year is a bit on the big side... :-)
./bin/kafkacow -C -b dmsc-kafka01.cslab.esss.lu.se:9092 -t FREIA_detector -d 2020-04-01T00:00:00.0

Nevermind, problem is in EFU code. The EFU is populating the Kafka header timestamp incorrectly.