# # # patch "std_hooks.lua" # from [b8e68730f6c3b92ff68fb0e0f6f866f55b6cb20b] # to [4fd91de30f180e1c8bd1b790fa81f642ea839d55] # ============================================================ --- std_hooks.lua b8e68730f6c3b92ff68fb0e0f6f866f55b6cb20b +++ std_hooks.lua 4fd91de30f180e1c8bd1b790fa81f642ea839d55 @@ -380,12 +380,14 @@ function get_date_format_spec() function get_date_format_spec() -- Return the strftime(3) specification to be used to print dates -- in human-readable format after conversion to the local timezone. - -- The default produces output like this: 22 May 2009, 09:06:14 AM - -- (the month names are localized). - return "%d %b %Y, %I:%M:%S %p" + -- The default uses the preferred date and time representation for + -- the current locale, e.g. the output looks like this: "09/08/2009 + -- 06:49:26 PM" for en_US, or "08.09.2009 18:49:26" for de_DE. + return "%x %X" -- A sampling of other possible formats you might want: -- default for your locale: "%c" (may include a confusing timezone label) + -- 12 hour format: "%d %b %Y, %I:%M:%S %p" -- like ctime(3): "%a %b %d %H:%M:%S %Y" -- email style: "%a, %d %b %Y %H:%M:%S" -- ISO 8601: "%Y-%m-%d %H:%M:%S" or "%Y-%m-%dT%H:%M:%S"