Skip to content

Commit

Permalink
bugfix: set UTC timezone when not timezone is set
Browse files Browse the repository at this point in the history
  • Loading branch information
ianka committed Apr 11, 2023
1 parent 4c15e57 commit 9e2f7ab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions xfs_undelete
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ set filetypes {
set sectsize 512


## Set UTC timezone if the timezone cannot be detected.
if {[catch {clock scan "now"}]} {
set env(TZ) ":UTC"
puts stderr "Timezone cannot be detected. Defaulting to UTC."
}


##
## Functions.
##
Expand Down

0 comments on commit 9e2f7ab

Please sign in to comment.