Hi,

I've noticed that when I add a timestamp in UTC time zone
(ABSOLUTE_TIME_UTC) to the tree with proto_tree_add_time() it's displayd
in UTC as expected. But when I get the string from this proto_item with
proto_item_get_display_repr() then I get local time instead.

I've digged a little bit into this and found in ftype-time.c:

absolute_val_to_repr(fvalue_t *fv, ftrepr_t rtype, int field_display
_U_, char *buf, unsigned int size)

that field_display is not used (which would contain ABSOLUTE_TIME_UCT).
Instead it's set to ABSOLUTE_TIME_LOCAL, same in absolute_val_repr_len().

Is there a good reason for this or a bug?

--
Cheers,

Thomas Wiens
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@wireshark.org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Reply via email to