mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 01:38:04 +00:00
time: Force the display of the tz sign
This commit is contained in:
parent
3a576f2441
commit
e23dd68715
1 changed files with 1 additions and 1 deletions
|
@ -733,7 +733,7 @@ where
|
|||
}
|
||||
|
||||
// match strftime "%Y-%m-%d %H:%M:%S.%f %z"
|
||||
const PRETTY_DATETIME_FORMAT: &[time::format_description::FormatItem] = format_description!("[year]-[month]-[day padding:zero] [hour]:[minute]:[second].[subsecond] [offset_hour][offset_minute]");
|
||||
const PRETTY_DATETIME_FORMAT: &[time::format_description::FormatItem] = format_description!("[year]-[month]-[day padding:zero] [hour]:[minute]:[second].[subsecond] [offset_hour sign:mandatory][offset_minute]");
|
||||
|
||||
pub fn pretty_time(sec: i64, nsec: i64) -> String {
|
||||
// sec == seconds since UNIX_EPOCH
|
||||
|
|
Loading…
Reference in a new issue