Lokale Zeitzone für Datumsberechnung verwenden
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 12 Jan 2011 15:01:25 +0000 (16:01 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 12 Jan 2011 15:15:32 +0000 (16:15 +0100)
SL/DB/Helper/LinkedRecords.pm

index c1d3133..6dc246d 100644 (file)
@@ -78,7 +78,7 @@ created today:
 
   my $invoices = $order->linked_records(direction => 'to',
                                         to        => 'SL::DB::Invoice',
-                                        query     => [ transdate => DateTime->today ]);
+                                        query     => [ transdate => DateTime->today_local ]);
 
 Returns an array reference.