<component name="ChangeListManager">
<list default="true" id="352ce63a-b52a-41a2-979b-becda7920939" name="Default" comment=".">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/scripts/lib/off.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/off.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/lib/weatherstation.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/weatherstation.php" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<workItem from="1574323616439" duration="14985000" />
<workItem from="1575617000688" duration="1986000" />
<workItem from="1575646996012" duration="72000" />
- </task>
- <task id="LOCAL-00202" summary=".">
- <created>1565865380451</created>
- <option name="number" value="00202" />
- <option name="presentableId" value="LOCAL-00202" />
- <option name="project" value="LOCAL" />
- <updated>1565865380452</updated>
+ <workItem from="1575647085982" duration="668000" />
+ <workItem from="1576479934693" duration="252000" />
+ <workItem from="1576480199671" duration="1812000" />
</task>
<task id="LOCAL-00203" summary=".">
<created>1565944175034</created>
<option name="project" value="LOCAL" />
<updated>1575617712738</updated>
</task>
- <option name="localTasksCounter" value="251" />
+ <task id="LOCAL-00251" summary=".">
+ <created>1575647196441</created>
+ <option name="number" value="00251" />
+ <option name="presentableId" value="LOCAL-00251" />
+ <option name="project" value="LOCAL" />
+ <updated>1575647196441</updated>
+ </task>
+ <option name="localTasksCounter" value="252" />
<servers />
</component>
<component name="TodoView">
<screen x="0" y="0" width="1920" height="1160" />
</state>
<state x="552" y="238" key="#Plugins/0.0.1920.1160@0.0.1920.1160" timestamp="1575647067016" />
- <state x="935" y="114" key="CommitChangelistDialog2" timestamp="1575617704022">
+ <state x="960" y="247" key="#com.intellij.openapi.updateSettings.impl.PluginUpdateInfoDialog" timestamp="1576479992407">
<screen x="0" y="0" width="2560" height="1040" />
</state>
- <state x="935" y="114" key="CommitChangelistDialog2/0.0.2560.1040@0.0.2560.1040" timestamp="1575617704022" />
- <state x="732" y="383" key="com.intellij.ide.util.TipDialog" timestamp="1575647093028">
+ <state x="960" y="247" key="#com.intellij.openapi.updateSettings.impl.PluginUpdateInfoDialog/0.0.2560.1040@0.0.2560.1040" timestamp="1576479992407" />
+ <state x="701" y="127" key="CommitChangelistDialog2" timestamp="1575647157027">
<screen x="0" y="0" width="1920" height="1160" />
</state>
+ <state x="701" y="127" key="CommitChangelistDialog2/0.0.1920.1160@0.0.1920.1160" timestamp="1575647157027" />
+ <state x="935" y="114" key="CommitChangelistDialog2/0.0.2560.1040@0.0.2560.1040" timestamp="1575617704022" />
+ <state x="976" y="343" key="com.intellij.ide.util.TipDialog" timestamp="1576480418011">
+ <screen x="0" y="0" width="2560" height="1040" />
+ </state>
<state x="732" y="383" key="com.intellij.ide.util.TipDialog/0.0.1920.1160@0.0.1920.1160" timestamp="1575647093028" />
- <state x="976" y="343" key="com.intellij.ide.util.TipDialog/0.0.2560.1040@0.0.2560.1040" timestamp="1575617014990" />
+ <state x="976" y="343" key="com.intellij.ide.util.TipDialog/0.0.2560.1040@0.0.2560.1040" timestamp="1576480418011" />
+ <state x="976" y="257" width="607" height="526" key="find.popup" timestamp="1576492890263">
+ <screen x="0" y="0" width="2560" height="1040" />
+ </state>
+ <state x="976" y="257" width="607" height="526" key="find.popup/0.0.2560.1040@0.0.2560.1040" timestamp="1576492890263" />
</component>
<component name="antWorkspaceConfiguration">
<option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
function isDay()
{
- $time = time();
+ $time = new DateTime('now', new DateTimeZone('Europe/Paris'));
- $sunrise = date_sunrise($time, SUNFUNCS_RET_TIMESTAMP, LATITUDE, LONGITUDE);
- $sunset = date_sunset($time, SUNFUNCS_RET_TIMESTAMP, LATITUDE, LONGITUDE);
+ $sunrise = date_sunrise($time->getTimestamp(), SUNFUNCS_RET_TIMESTAMP, LATITUDE, LONGITUDE, 90, $time->getOffset() / 3600);
+ $sunset = date_sunset($time->getTimestamp(), SUNFUNCS_RET_TIMESTAMP, LATITUDE, LONGITUDE, 90, $time->getOffset() / 3600);
if ($time > $sunset && $sunrise < $sunset) {
$sunrise += 3600 * 24;