Current Server Time: 12:46 (Central Europe)

#apertus IRC Channel Logs

2015/05/03

Timezone: UTC


00:36
fsteinel
joined the channel
00:39
fsteinel_
left the channel
05:09
davidak
left the channel
05:10
davidak
joined the channel
05:12
davidak
left the channel
05:51
jucar
left the channel
06:03
Bertl
off to bed now ... have a good one everyone!
06:03
Bertl
changed nick to: Bertl_zZ
06:05
slikdigit
joined the channel
06:22
slikdigit
left the channel
07:36
jucar
joined the channel
08:38
se6astian|away
changed nick to: se6astian
08:39
se6astian
good morning
09:19
niemand
joined the channel
09:30
se6astian
changed nick to: se6astian|away
10:10
troy_s
left the channel
10:56
niemand
left the channel
12:29
niemand
joined the channel
12:33
niemand
left the channel
12:48
g3gg0
left the channel
12:48
se6astian|away
changed nick to: se6astian
12:59
Bertl_zZ
changed nick to: Bertl
12:59
Bertl
morning folks!
13:11
g3gg0
joined the channel
13:13
aombk3
left the channel
14:12
intracube
what's the easiest way to point to a version of a file in github?
14:14
intracube
nevermind
14:26
se6astian
good day
14:27
intracube
hi se6astian
14:27
intracube
is testing a couple of things before replying to T420
14:29
se6astian
wonderful!
14:41
intracube
se6astian: http://yellerapp.com/posts/2015-01-12-the-worst-server-setup-you-can-make.html
14:41
intracube
:)
14:41
intracube
I'm not sure how correct that page is
14:42
intracube
seems a sane argument for UTC though
14:57
se6astian
your vote is for changing the irc viewer server timezone to UTC I assume?
15:04
intracube
se6astian: I think so
15:04
intracube
but it depends if the server is running anything else
15:05
intracube
which might inadvertently get altered
15:05
Bertl
changing the timezone in the php script should suffice, no?
15:05
intracube
I think the simplest is just to add date_default_timezone_set('UTC');
15:05
intracube
Bertl: yep
15:06
intracube
but I wasn't sure if Apache/PHP would know that the server OS was set to CET
15:07
intracube
or if Apache/PHP just assumes that whatever time it gets back is UTC
15:07
se6astian
I think I tried date_default_timezone_set('UTC'); and the PHP version was too old to support that
15:07
se6astian
but let me check
15:07
Bertl
(unix) time itself is timezone less
15:07
intracube
Bertl: ?
15:08
Bertl
it is just when you want a date representation, that you get e.g. CET
15:08
intracube
Bertl: ah ok. I didn't realise
15:09
Bertl
time in unix is not tied to any timezone
15:09
Bertl
it is the amount of seconds since 1.1.1970
15:09
intracube
right. so epoch is seconds from Jan 1st 1970 UTC
15:10
Bertl
i.e. it will be correct, regardless of the timezone, the problem only appears when you start converting from one to the other or to give a textual/numerical representation different from unix time
15:10
intracube
but since date("H:i") in index.php is returning 17:10 right now. PHP is translating the time
15:10
intracube
somewhere... :)
15:11
intracube
"Prior to PHP 5.4.0 only: Querying the host operating system (if supported and allowed by the OS). This uses an algorithm that has to guess the timezone. This is by no means going to work correctly for every situation. A warning is shown when this stage is reached. Do not rely on it to be guessed correctly, and set date.timezone to the correct timezone instead."
15:12
Bertl
here is my opinion on the issue(s):
15:13
Bertl
the logger is using UTC and also changes files based on UTC
15:13
Bertl
so, unless you want to do mapping of single entries/messages
15:13
Bertl
you want to go for UTC on the php script as well
15:13
intracube
yep
15:14
Bertl
today will then always be today, and "now" will be in sync with the logger
15:14
Bertl
if we want to support time zones at the web interface level
15:14
Bertl
we need to break the logs down into single "events" and use the unix timestamp there
15:15
Bertl
this will create "new" days according to the timezone
15:17
se6astian
I want to go for UTC in the log viewer as well
15:17
se6astian
we are running PHP Version 5.0.4, date_default_timezone_set requires (PHP 5 >= 5.1.0)
15:18
intracube
se6astian: what about editing php.ini ?
15:18
Bertl
that is probably a bad idea :)
15:18
intracube
and not supported before 5.1.0 anyway :/
15:19
intracube
and might break any other .php scripts
15:19
Bertl
but I think there is a timezone setting on older php, IIRC, it was there since 2.x :)
15:22
se6astian
http://php.net/manual/en/function.gmdate.php ?
15:24
Bertl
try ini_set( 'date.timezone', 'UTC' );
15:28
se6astian
done
15:28
se6astian
it still says: Current Server Time: 17:28 (Central Europe)
15:29
Bertl
check the logs, maybe the ini_set() is blocked by security
15:29
Bertl
can be overridden IIRC
15:29
se6astian
will check
15:30
Bertl
but maybe a php update is in order, 5.0.4 was released 2005 IIRC
15:38
se6astian
you do that every decade, "already"? :)
15:38
se6astian
php error reports only: [03-May-2015 17:16:23] PHP Fatal error: Call to undefined function date_default_timezone_set() in /domain/apertus.org/irc./html/index.php on line 2
15:39
se6astian
VLOG-2015-05-irc.apertus.org.log I dont have read permissions
15:49
slikdigit
joined the channel
15:54
slikdigit
left the channel
15:57
intracube
gtg - rain + lightning nearby
15:57
intracube
left the channel
15:59
aombk
joined the channel
16:00
davidak
joined the channel
16:02
jucar
left the channel
16:17
troy_s
joined the channel
16:32
intracube
joined the channel
16:33
Bertl
off for now ... bbl
16:33
Bertl
changed nick to: Bertl_oO
16:39
aombk2
joined the channel
16:42
aombk
left the channel
16:53
aombk2
left the channel
16:53
aombk
joined the channel
17:02
niemand
joined the channel
17:07
niemand
left the channel
17:20
niemand
joined the channel
18:30
troy_s
left the channel
18:51
niemand
left the channel
19:04
niemand
joined the channel
20:59
se6astian
off to bed
20:59
se6astian
gnight
20:59
se6astian
changed nick to: se6astian|away
21:03
rhavan
left the channel
21:17
niemand
left the channel
22:38
g3gg0
left the channel
23:13
troy_s
joined the channel