We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2235e8c commit c3e1f0eCopy full SHA for c3e1f0e
src/main.rs
@@ -251,7 +251,10 @@ pub fn time_mod(
251
) -> Result<(), Box<dyn std::error::Error>> {
252
if e.symlink_metadata()?.modified().is_ok() {
253
let timestamp = fs::symlink_metadata(e)?;
254
- let naive = NaiveDateTime::from_timestamp(FileTime::from_last_modification_time(×tamp).seconds() as i64, 0);
+ let naive = NaiveDateTime::from_timestamp(
255
+ FileTime::from_last_modification_time(×tamp).seconds() as i64,
256
+ 0,
257
+ );
258
let datetime: DateTime<Local> = DateTime::from_utc(naive, *Local::now().offset());
259
if !Cli::from_args().colors_on {
260
print!("{}", color::Fg(color::LightRed));
0 commit comments