What's new

Shell doesn't get local time? Is this 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!

vibroverbus

Regular Contributor
Not sure if this is a new thing or not, I think it is, but just noticed my shell sessions were in UTC. No TZ env variable being exported. I added that to jffs/configs/profile.add and seems to work fine now but... is that new? Or did I just never notice?

All other system dates are churning along fine including everything in the system log (unless I was generating an entry from an interactive shell session)...

Just wondering.
 
Not sure if this is a new thing or not, I think it is, but just noticed my shell sessions were in UTC. No TZ env variable being exported. I added that to jffs/configs/profile.add and seems to work fine now but... is that new? Or did I just never notice?

All other system dates are churning along fine including everything in the system log (unless I was generating an entry from an interactive shell session)...

Just wondering.
What firmware and router model is this on?
 
AC3200 & 384.3

Everything else works brilliantly, and as I say, profile.add fixes it right up (gave me opportunity to add a fancier prompt too, like newer DD-WRT releases use...)
 
AC3200 & 384.3

Everything else works brilliantly, and as I say, profile.add fixes it right up (gave me opportunity to add a fancier prompt too, like newer DD-WRT releases use...)
The date is correct, just the TZ is wrong?
I can't help, I'm more interested what the shell reports vs the actual UI for my scripts for those seldom cases it is not applied to it.
 
Yep. No TZ was being set in default profile, so it reports a perfectly correct UST. Unfortunately that was being used for log entries so any shell scripts I was running would be stamping syslog entries with 'dates in the future', while all the system log entries looked fine.
 

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!
Top