public
Description: My personal script stash
Homepage: http://github.com/melo/scripts
Clone URL: git://github.com/melo/scripts.git
Search Repo:
bugfix: DateTime needs to receive the epoch value

This bug was present on the original script, after my last refactoring 
run.

Signed-off-by: Pedro Melo <melo@simplicidade.org>
melo (author)
Sat May 03 01:49:53 -0700 2008
commit  f9e111a6b6d511d6123c223237ebc5f833612a5e
tree    777f4f18af19281c5547a27db3d5190eba56115b
parent  1d964767dead5655db56d4ebfc15bf4843d0137e
...
29
30
31
32
 
33
34
35
...
29
30
31
 
32
33
34
35
0
@@ -29,7 +29,7 @@
0
   my $dt;
0
 
0
   if ($t =~ /^\d+$/) {
0
- $dt = DateTime->from_epoch( epoch => $_ );
0
+ $dt = DateTime->from_epoch( epoch => $t );
0
   }
0
   elsif ($t =~ /^(\d\d\d\d)[-\/](\d+)[-\/](\d+)$/) {
0
     $dt = DateTime->new(

Comments

    No one has commented yet.