What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

How to restore /jffs/zoneinfo?

XIII

Very Senior Member
Today I discovered that the shell is reporting UTC time instead of my local timezone (CEST):

Code:
date
Wed Jun 18 13:09:40 UTC 2025

I tried to fix that by setting the TZ variable:
Code:
export TZ=Europe/Berlin
date
Wed Jun 18 13:09:40 Europe 2025

So while the text changes from "TZ" to "Europe" the hours remain the same (13) instead of the +2 for CEST (15).

Then I noticed that /etc/localtime is a link to a file in /jffs/zoneinfo, but the entire "zoneinfo" folder does not exist in JFFS on my GT-AX6000 (running ASUSWRT-Merlin 3006.102.4_0).

  1. How can I fix this?
  2. Can I use "CEST" instead of "Europe/Berlin"? (which I used as an example)
 
Manually linking /etc/localtime to /opt/share/zoneinfo/Europe/Berlin seems to fix this, but will this survive a reboot?

(Or do I need to do this in a script that is executed every boot?)
 
Then I noticed that /etc/localtime is a link to a file in /jffs/zoneinfo, but the entire "zoneinfo" folder does not exist in JFFS on my GT-AX6000 (running ASUSWRT-Merlin 3006.102.4_0).
I've never heard of a /jffs/zoneinfo directory existing before. So unless this is something new in the 3006.102 firmware I'm guessing that some third party script created it.

Normally /etc/localtime points to something under /rom/usr/share/zoneinfo as defined in the webUI. e.g.
Code:
# ls -l /etc/localtime
lrwxrwxrwx    1 admin    root            37 Jun  4 11:22 /etc/localtime -> /rom/usr/share/zoneinfo/Europe/Dublin

See also this recent discussion regarding the difference between /etc/localtime and $TZ:

I suggest you disable JFFS custom scripts and configs in the webUI, reboot and see what /etc/localtime now points to.
 
Last edited:
I do indeed run the NextDNS CLI Client... Good catch!

(Surprised I haven't noticed this before)

Confirmed: after restarting the NextDNS client, /etc/localtime again points to /jffs/timezone...
 
Yes, I suffer from way more `asd` deletions than I'd like (all false positives).

Why are all the custom scripts generated by this community not affected by `asd`?
 
Why are all the custom scripts generated by this community not
I believe Asus setup exclusions for the scripts and addons directories unique to Merlin.
 
Last edited:
Why are all the custom scripts generated by this community not affected by `asd`?
Probably because they don't put stuff in /jffs unless it's under /jffs/scripts, /jffs/configs or /jffs/addons. Anywhere else and it's likely to be deleted.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top