Hi,
does anybody know a quick fix to the DateTime or Yaml bug
YAML::load(DateTime.now.to_yaml).class
=> Time
Nobody out there to answer the question? The Problem is
not only, that the class switches to Time, but also that
the read in date is wrong by an week (and the time differs too):
=> # said:
=> "--- !timestamp 2007-08-28T11:17:35+0200\n"
res= YAML::load(dt.to_yaml)
=> Mon Aug 20 05:17:35 Westeurop ische Normalzeit 2007
=> "--- 2007-08-20 05:17:35 +02:00\n"
using Marshal
Marshal.load(Marshal.dump(dt))
gives the right solution (both the class and the data in it are
exactly the same), but I really wanted to stick to yaml ...
Artur