-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Young,

I tried to come up with a way to automatically detect and set the timezone, 
but I couldn't come up with anything I felt was reliable enough.  I don't 
think the list in /usr/share/zoneinfo matches the list of timezones supported 
by php closely enough to do this automatically.  Also, copying the file from 
/usr/share/zoneinfo to /etc/localtime is allowed, in which case it wouldn't 
be a link at all.

Josh

On Friday, September 02, 2016 3:02:56 PM YOUNG OH wrote:
> Hi Josh,
> 
> I've tested the vcl-install.sh script and it works fine. It changed the
> time zone in conf.php.
> 
> One thing I would like to suggest is that it would be great if we
> automatically set the timezone.
> 
> I found that we can get the timezone information from localtime and we
> might automatically assign it to the TIMEZONE variable in the
> vcl-install.sh.
> 
============================================================================
> ====== For example, in CentOS 7, we can get the local timezone information
> from localtime
> #  ls -l /etc/localtime
> lrwxrwxrwx. 1 root root 38 Aug  7 22:48 /etc/localtime ->
> ../usr/share/zoneinfo/America/New_York
> 
> Then, parsing
> # ls -l /etc/localtime | awk -F/ '{print $7 "/" $8}'
> America/New_York
> 
> Set the value in vcl-install.sh
> TIMEZONE=`ls -l /etc/localtime | awk -F/ '{print $7 "/" $8}'`
> 
============================================================================
> =======
> 
> Thanks,
> Young
> 
> On Thu, Aug 25, 2016 at 12:44 PM, Josh Thompson (JIRA) <[email protected]>
> 
> wrote:
> >      [ https://issues.apache.org/jira/browse/VCL-979?page=com.
> > 
> > atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
> > 
> > Josh Thompson resolved VCL-979.
> > -------------------------------
> > 
> >     Resolution: Implemented
> > > 
> > > install script - prompt for timezine during installation
> > > --------------------------------------------------------
> > > 
> > >                 Key: VCL-979
> > >                 URL: https://issues.apache.org/jira/browse/VCL-979
> > >             
> > >             Project: VCL
> > >          
> > >          Issue Type: Improvement
> > >          Components: web gui (frontend)
> > >          
> > >            Reporter: Josh Thompson
> > >            Priority: Minor
> > >            
> > >             Fix For: 2.5
> > > 
> > > It would be helpful for the install script to prompt users to select 
the
> > 
> > timezone in which the system will be running. Alternatively, it could
> > inspect the running system and match the timezone for VCL to the system's
> > timezone.
> > 
> > 
> > 
> > --
> > This message was sent by Atlassian JIRA
> > (v6.3.4#6332)
- -- 
- -------------------------------
Josh Thompson
VCL Developer
North Carolina State University

my GPG/PGP key can be found at pgp.mit.edu

All electronic mail messages in connection with State business which
are sent to or received by this account are subject to the NC Public
Records Law and may be disclosed to third parties.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlfJ1zAACgkQV/LQcNdtPQNDGwCfSEAsOj6WwkKdD1hMSZ17+9OH
YDsAn2Tcc90mqltxrpPVwBQURXWJz7OB
=6OnM
-----END PGP SIGNATURE-----

Reply via email to