1
0
mirror of https://github.com/limosek/zaf-plugins.git synced 2025-11-02 10:37:37 +01:00

Removed newlines from output

This commit is contained in:
Lukas Macura
2016-12-11 16:15:22 +01:00
parent 065feeec04
commit 08875ed63c
4 changed files with 5 additions and 11 deletions

View File

@@ -1,6 +1,4 @@
#!/usr/bin/env php
<?php
error_reporting(0);
session_start();
$from=$argv[1];
@@ -8,16 +6,17 @@
define("YOURTIMEZONE",getenv("timezone"));
define("BOOKEDWEBSERVICESURL",getenv("url"));
require_once(__DIR__ . "/bookedapi.php");
if ($from) {
$from=New DateTime($from);
$from=New DateTime(strtr($from,"_"," "));
$from=$from->getTimestamp();
} else {
$from=time();
}
if ($to) {
$to=New DateTime($to);
$to=New DateTime(strtr($to,"_"," "));
$to=$to->getTimestamp();
} else {
$to=time()+3600;
@@ -43,4 +42,3 @@
echo $cnt;