Environmental variables are inherited by a process from the program
which spawned it.

So, the information supplied in environmental variables must be
supplied before the process launches.

This is fine for the timezone for machines which do not move. It's
inadequate for machines which do move.

That said, security (or, more specifically, the concept of "attack
surface") is a commonly used "catchall rationale" for tossing
unnecessary or malfunctioning mechanisms.

-- 
Raul

On Mon, Jun 13, 2022 at 3:06 PM Martin Kreuzer <i...@airkreuzer.com> wrote:
>
> Wasn't aware of that particular development (though experiencing
> 'overly zealous security measures' every day on the web). --
> I'm glad that I got J903 running on that little Sony xperia in the
> first place (since this morning).
> Thanks for the info.
> -M
>
> At 2022-06-13 18:49, you wrote:
>
> >On my phone (an iphone 7):
> >
> >Yes, TZ is not defined for you (nor for me on this phone).
> >
> >Plausibly a consequence of over zealous security measures, though more
> >likely a consequence of the "long running process" model for phones  where
> >many phone users (particularly influential users) frequently change time
> >zones without rebooting their phone.
> >
> >Thanks,
> >
> >--
> >Raul
> >
> >On Mon, Jun 13, 2022 at 2:40 PM Martin Kreuzer <i...@airkreuzer.com> wrote:
> >
> > > On my phone (Android v4.4.4) I get
> >
> > >     2!:5 'TZ'
> > > 0
> >
> > > which is to say that this environment variable doesn't exist?
> >
> > >     JVERSION
> > > Engine: j03/j32/android
> > > Release-a: commercial/2022-01-08T13:47:02
> > > Library: 9.03.08
> > > J Android: 1.4.17/4.4.4/19
> > > ...
> >
> > > -M
> >
> > > At 2022-06-12 04:01, you wrote:
> >
> > > >If you are running under a unix-like operating system, 2!:5'TZ' should
> > > work.
> > > >
> > > >If you are running under windows, on an older version of J, I think
> > > >2!:0'tzutil /g' would work.
> > > >
> > > >In more recent versions of J, something has gone wrong with 2!:0 so
> > > >instead you would use
> > > >
> > > >require'task'
> > > >shell'tzutil /g'
> > > >
> > > >Note that all of these approaches provide a textual result.
> > > >
> > > >I hope this helps,
> > > >
> > > >--
> > > >Raul
> > > >
> > > >For information about J forums see http://www.jsoftware.com/forums.htm
> >
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> >----------------------------------------------------------------------
> >For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to