[Groonga-commit] droonga/fluent-plugin-droonga at fb570ba [master] Accept nil date

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Sep 12 12:27:26 JST 2013


YUKI Hiroshi	2013-09-12 12:27:26 +0900 (Thu, 12 Sep 2013)

  New Revision: fb570ba56aaf2a4a87ef33795b4f678673527e9d
  https://github.com/droonga/fluent-plugin-droonga/commit/fb570ba56aaf2a4a87ef33795b4f678673527e9d

  Message:
    Accept nil date

  Modified files:
    lib/groonga_command_converter.rb

  Modified: lib/groonga_command_converter.rb (+2 -1)
===================================================================
--- lib/groonga_command_converter.rb    2013-09-12 12:15:47 +0900 (7c9b918)
+++ lib/groonga_command_converter.rb    2013-09-12 12:27:26 +0900 (0cb1275)
@@ -70,7 +70,8 @@ module Droonga
       Digest::SHA1.hexdigest("#{now_msec}:#{random_string}")
     end
 
-    def formatted_date(time=Time.now)
+    def formatted_date(time)
+      time ||= Time.now
       time.iso8601
     end
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index