BTRFS is Reading an Hour behind / its 21:23 Local time I take a snapshot it reads 20:23

firassudo@firassudo in ~ 
 ╰─λ garuda-inxi
System:
  Kernel: 6.1.10-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=7dc79d1c-63d9-4e71-b358-fecbdaca0707 rw rootflags=subvol=@
    quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    loglevel=3
  Desktop: MATE v: 1.26.0 info: mate-panel wm: marco v: 1.26.1 vt: 7
    dm: LightDM v: 1.32.0 Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: PRIME Z490-A v: Rev 1.xx serial: <superuser required>
    UEFI: American Megatrends v: 2601 date: 05/17/2022
CPU:
  Info: model: Intel Core i7-10700K bits: 64 type: MT MCP arch: Comet Lake
    gen: core 10 level: v3 note: check built: 2020 process: Intel 14nm family: 6
    model-id: 0xA5 (165) stepping: 5 microcode: 0xF4
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 2 MiB desc: 8x256 KiB
    L3: 16 MiB desc: 1x16 MiB
  Speed (MHz): avg: 4300 high: 4806 min/max: 800/5100 scaling:
    driver: intel_pstate governor: performance cores: 1: 4800 2: 4806 3: 3800
    4: 3800 5: 3800 6: 4800 7: 4804 8: 3800 9: 3800 10: 4801 11: 3800 12: 4802
    13: 4800 14: 4800 15: 3800 16: 3800 bogomips: 121596
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3
  Vulnerabilities: <filter>
Graphics:
  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
    vendor: ASUSTeK driver: amdgpu v: kernel arch: GCN-4 code: Arctic Islands
    process: GF 14nm built: 2016-20 pcie: gen: 1 speed: 2.5 GT/s lanes: 16
    link-max: gen: 3 speed: 8 GT/s ports: active: HDMI-A-1 empty: DP-1, DP-2,
    DVI-D-1, HDMI-A-2 bus-ID: 01:00.0 chip-ID: 1002:67df class-ID: 0300
    temp: 51.0 C
  Display: x11 server: X.Org v: 21.1.7 compositor: marco v: 1.26.1 driver:
    X: loaded: amdgpu unloaded: modesetting alternate: fbdev,vesa dri: radeonsi
    gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.65x15.00")
    s-diag: 777mm (30.58")
  Monitor-1: HDMI-A-1 mapped: HDMI-A-0 model: AOC Q32G1WG4 serial: <filter>
    built: 2019 res: 2560x1440 dpi: 93 gamma: 1.2 size: 697x393mm (27.44x15.47")
    diag: 800mm (31.5") ratio: 16:9 modes: max: 2560x1440 min: 720x400
  API: OpenGL Message: Unable to show GL data. Required tool glxinfo
    missing.
Audio:
  Device-1: Intel Comet Lake PCH cAVS vendor: ASUSTeK driver: snd_hda_intel
    v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
    chip-ID: 8086:06c8 class-ID: 0403
  Device-2: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
    vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s
    lanes: 16 bus-ID: 01:00.1 chip-ID: 1002:aaf0 class-ID: 0403
  Sound API: ALSA v: k6.1.10-zen1-1-zen running: yes
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.65 running: yes
Network:
  Device-1: Intel Ethernet I225-V vendor: ASUSTeK driver: igc v: kernel pcie:
    gen: 2 speed: 5 GT/s lanes: 1 port: N/A bus-ID: 04:00.0 chip-ID: 8086:15f3
    class-ID: 0200
  IF: enp4s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 3.18 TiB used: 12.01 GiB (0.4%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
    model: WDS250G2B0C-00PXH0 size: 232.89 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 211070WD temp: 34.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:3 vendor: Samsung
    model: SSD 970 EVO Plus 250GB size: 232.89 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 2B2QEXM7 temp: 43.9 C scheme: MBR
  ID-3: /dev/sda maj-min: 8:0 vendor: Toshiba model: HDWD130 size: 2.73 TiB
    block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD
    rpm: 7200 serial: <filter> rev: ACF0 scheme: GPT
Partition:
  ID-1: / raw-size: 232.59 GiB size: 232.59 GiB (100.00%)
    used: 12.01 GiB (5.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 608 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 232.59 GiB size: 232.59 GiB (100.00%)
    used: 12.01 GiB (5.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 232.59 GiB size: 232.59 GiB (100.00%)
    used: 12.01 GiB (5.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-5: /var/tmp raw-size: 232.59 GiB size: 232.59 GiB (100.00%)
    used: 12.01 GiB (5.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 31.25 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 49.0 C mobo: N/A gpu: amdgpu temp: 51.0 C
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 1203
Info:
  Processes: 334 Uptime: 6m wakeups: 0 Memory: 31.25 GiB used: 2.12 GiB (6.8%)
  Init: systemd v: 252 default: graphical tool: systemctl Compilers:
  gcc: 12.2.1 Packages: pm: pacman pkgs: 1292 libs: 339
  tools: gnome-software,octopi,paru Shell: fish v: 3.6.0
  running-in: mate-terminal inxi: 3.3.25
error: could not register 'chaotic-aur' database (database already registered)
Garuda (2.6.14-1):
  System install date:     2023-02-10
  Last full system update: 2023-02-10
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       No/Undetected
  Failed units:            

BTRFS is Reading an Hour behind / its 21:23 Local time I take a snapshot it reads 20:23

I think (can't check today) that snapper used UTC time.
It should be configurable with the global options.
See manpage
http://snapper.io/manpages/snapper.html

5 Likes

It looks like UTC time can be enabled with a flag, but should not be the default:

GLOBAL OPTIONS

--utc

Display dates and times in UTC. By default, local time is used.

On my systems, snapshots are labeled with the correct time, and I am in the EST timezone.

This isn’t the first time this has come up, actually: Snapper problems - #8 by lum1nuss

@lum1nuss did you ever figure out why your snapshots are on UTC?

@Firas is your system time correct? Check the output of the date command.

3 Likes

I suspect this was a bug in snapper-tools, not snapper or btrfs itself.
Fixed in this commit: Make it clear to Qt that we are dealing with UTC time (5da1f152) · Commits · Garuda Linux / Applications / Snapper Tools · GitLab

7 Likes

Nah I never bothered to figure it out haha, it wasn’t a big deal to me. Great to know that the bug is getting fixed!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.