I'd use the Server Timezone... The priority is to have, at first, only Brazilian members... So, timezone won't be a problem.stevemaury wrote: ↑Wed Jan 23, 2019 7:50 pm Problem is, whose timezone? The user? The server? And Guests will have different time zone too. You will end up serving different styles to different users at the same time and I don't think that is possible.
Great... I'll do this.
Great... I'm asking now for move this Topic
Light during the day and dark at night?Lumpy Burgertushie wrote: ↑Wed Jan 23, 2019 8:14 pm I am curious, what is the purpose/benefit of this?
We'll use the Capital's Timezone....
Do you Know Mac OS Mojave? It changes its style according to time... So you don't get tired eyes for excessive WHITE on your face at 01:00 am for example.Lumpy Burgertushie wrote: ↑Wed Jan 23, 2019 8:14 pm I am curious, what is the purpose/benefit of this?
robert
The default system allows for users to choose their style from those installed, and to change styles when they feel like it, so basically that is serving different styles to different users at the same time. Or am I missing something?stevemaury wrote: ↑Wed Jan 23, 2019 7:50 pm Problem is, whose timezone? The user? The server? And Guests will have different time zone too. You will end up serving different styles to different users at the same time and I don't think that is possible.
Maybe the "Light Style:" and "Dark Style:" selection exists for all users, but those who don't want it simply have "Style1" specified for both settings, instead of selecting an actual separate light and dark style.
Sure….warmweer wrote: ↑Wed Jan 23, 2019 8:42 pm I actually like the idea.
The default system allows for users to choose their style from those installed, and to change styles when they feel like it, so basically that is serving different styles to different users at the same time. Or am I missing something?stevemaury wrote: ↑Wed Jan 23, 2019 7:50 pm Problem is, whose timezone? The user? The server? And Guests will have different time zone too. You will end up serving different styles to different users at the same time and I don't think that is possible.
I do see some extra work involved, because I can imagine some users not wanting a style switch: would that switch be an admin decision or could users select to use the automatic switch or to use only their selected style?
For this reason that I will offer 3 Styles…. Light, Dark and AutoEA117 wrote: ↑Wed Jan 23, 2019 8:55 pmMaybe the "Light Style:" and "Dark Style:" selection exists for all users, but those who don't want it simply have "Style1" specified for both settings, instead of selecting an actual separate light and dark style.
I realize this is an extension discussion, but the question really makes me want to try and find some premium style that has already implemented this within itself using JavaScript and CSS color animation. That kind of functionality seems within "easy reach" (in relative terms), but if there is one out there which does an automatic animation of its CSS colors, I'm not finding it.
Code: Select all
{% set time = now | date("G", "Europe/Paris") %}
{% if time >= 20 and time < 8 %}
<link type="text/css" rel="stylesheet" href="css/style_dark.css"/>
{% else %}
<link type="text/css" rel="stylesheet" href="css/style_light.css"/>
{% endif %}