ddfreyne changed the topic of #nanoc to: 3.6.4 (may 29th) | web http://nanoc.ws/ | repo http://bit.ly/XE6e3G | issues http://bit.ly/VfXaSV | forum http://ho.io/n-discuss | irclog http://irclog.whitequark.org/nanoc
pepijndevos has quit [Ping timeout: 240 seconds]
pepijndevos has joined #nanoc
jugglinmike has quit [Quit: Leaving.]
louquillio has quit [Remote host closed the connection]
louquillio has joined #nanoc
alerante has quit [Read error: Connection reset by peer]
alerante has joined #nanoc
alerante has quit [Read error: Connection reset by peer]
alerante_ has joined #nanoc
alerante_ has quit [Read error: Connection reset by peer]
alerante has joined #nanoc
alerante has quit [Remote host closed the connection]
skroon has joined #nanoc
<Skyr> Any idea why nanoc (or the yaml library) mangles dates in the yaml front matter? I have
<Skyr> - startdate: 2013-12-18 18:00:00.000000000 +02:00
<Skyr> in my yaml data, but when I puts the value, I get
<Skyr> 2013-12-18 21:00:00 +0100
<ddfreyne> Skyr: what happens if you quote the string? startdate: "..."
<Skyr> (sorry, the last one should have been 2013-12-18 17:00:00 +0100)
<Skyr> TypeError: can't convert Fixnum into String
<ddfreyne> !ruby require 'yaml' ; YAML.load('startdate: 2013-12-18 18:00:00.000000000 +02:00')
<number-six> #<NoMethodError: undefined method `require' for main:Object>
<ddfreyne> !ruby YAML.load('startdate: 2013-12-18 18:00:00.000000000 +02:00')
<number-six> #<NameError: uninitialized constant YAML>
<ddfreyne> gah, useless
<ddfreyne> YAML.load('startdate: 2013-12-18 18:00:00.000000000 +02:00')
<ddfreyne> => {"startdate"=>2013-12-18 17:00:00 +0100}
<ddfreyne> Hmmm.
<Skyr> It has something to do with daylight saving time
<Skyr> YAML.load('startdate: 2013-10-18 18:00:00.000000000 +02:00')
<Skyr> => {"startdate"=>2013-10-18 18:00:00 +0200}
<Skyr> This is _so_ weird.
pavelkunc has joined #nanoc
<ddfreyne> Hmmmmm.
<ddfreyne> Wait, why does it work for you now?
<Skyr> Look at the month - once with, once without dst
<ddfreyne> Ahh...
<ddfreyne> Skyr: Weird
<ddfreyne> color me clueless
<Skyr> Ok, if my personal Ruby god has no clue... ;-)
<ddfreyne> haha
<ddfreyne> Skyr: I recommend asking on #ruby-lang
<Skyr> ddfreyne: ok, thanks. I'll give it a shot
cDlm has quit [Ping timeout: 245 seconds]
pavelkunc has quit [Quit: Leaving.]
cDlm has joined #nanoc
<Skyr> ddfreyne: Ok, here is the answer I got:
<Skyr> "Time can only represent your local timezone and UTC.
<Skyr> So YAML will find the UNIX epoch and create a Time object in your local timezone.
<Skyr> When you present a Time object you can use tzinfo to show it in the correct timezone."
<Skyr> (slightly shortened)
<ddfreyne> hmm, alright
<darix> so maybe use utc all the time and convert it to local on rendering?
<ddfreyne> Yeah, I would recommend doing that
<darix> timezones are silly anyway
pavelkunc has joined #nanoc
VitamineD has joined #nanoc
cDlm has quit [Ping timeout: 276 seconds]
VitamineD is now known as cDlm
pavelkunc has quit [Quit: Leaving.]
pavelkunc has joined #nanoc
jugglinmike has joined #nanoc
alerante has joined #nanoc
alerante_ has joined #nanoc
alerante_ has quit [Changing host]
alerante_ has joined #nanoc
alerante has quit [Ping timeout: 245 seconds]
alerante_ has quit [Ping timeout: 264 seconds]
Rym has joined #nanoc
Rym has quit [Ping timeout: 256 seconds]
alerante has joined #nanoc
alerante has quit [Read error: Connection reset by peer]
alerante_ has joined #nanoc
cDlm has quit [Quit: cDlm]
Rym has joined #nanoc
skroon has quit [Ping timeout: 276 seconds]
cDlm has joined #nanoc
Rym has quit [Quit: Rym]
alerante_ has quit [Ping timeout: 276 seconds]
alerante has joined #nanoc
skroon has joined #nanoc
skroon_ has joined #nanoc
skroon has quit [Ping timeout: 245 seconds]
<bobthecow> darix: i'm voting troll.
<bobthecow> that's pretty amazing.
skroon_ has quit [Ping timeout: 256 seconds]
skroon has joined #nanoc
skroon has quit [Ping timeout: 245 seconds]
skroon has joined #nanoc
skroon has quit [Read error: Operation timed out]
<smkelly> I overhear the strangest things at work.
<darix> bobthecow: i have seen people doing similarly bad things e.g. in #lighttpd
pavelkunc has quit [Quit: Leaving.]
skroon has joined #nanoc
Rym has joined #nanoc
skroon_ has joined #nanoc
skroon has quit [Ping timeout: 264 seconds]
skroon_ has quit [Read error: Operation timed out]
yogsototh has quit [Remote host closed the connection]
skroon has joined #nanoc
Rym has quit [Remote host closed the connection]
skroon_ has joined #nanoc
Rym has joined #nanoc
skroon has quit [Ping timeout: 264 seconds]
skroon has joined #nanoc
skroon_ has quit [Ping timeout: 248 seconds]
skroon has quit [Read error: Operation timed out]
skroon has joined #nanoc
cDlm has quit [Quit: cDlm]
cDlm has joined #nanoc
_br_ has quit [Ping timeout: 247 seconds]
_br_ has joined #nanoc