Ethereal-dev: Re: [Ethereal-dev] Date Format Preferences

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Fri, 06 May 2005 18:32:47 -0700
Javier Acuña wrote:

I'm wondering if we could add a general preferences dialog for date
formats, which would apply to all dissectors. (that is if Ethereal
doesn't have one yet, at leat I coulnd't fine one.)

It would be better for all dissector to show date strings the same
way, be it european (dd/mm/yyyy) or american (mm/dd/yyyy).

...or ISO 8601-style (yyyy-mm-dd). (I think a number of Asian countries use year-month-day order.)

A centralized preference (perhaps in UI preferences) for this would be excellent.

A centralized set of routines, which all dissectors used, would be a prerequisite. :-) We do have a number of routines, and they should probably use the same format, at least for binary dates.

On many systems there already is a date format preference, or something that amounts to it. Perhaps just using %x in strftime() is the right answer, as that'd default to the system date representation.