Current Server Time: 22:23 (Central Europe)

#apertus IRC Channel Logs

2015/05/03

Timezone: UTC


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