predictionio-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From don...@apache.org
Subject incubator-predictionio-sdk-ruby git commit: Normalize eventTime format to iso8601
Date Sun, 17 Sep 2017 00:51:31 GMT
Repository: incubator-predictionio-sdk-ruby
Updated Branches:
  refs/heads/develop 5d3b89cfc -> 03b7c4bac


Normalize eventTime format to iso8601

Closes #21


Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-sdk-ruby/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-sdk-ruby/commit/03b7c4ba
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-sdk-ruby/tree/03b7c4ba
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio-sdk-ruby/diff/03b7c4ba

Branch: refs/heads/develop
Commit: 03b7c4bac75fce1cbee00b5cbaa0aee589cbb26a
Parents: 5d3b89c
Author: Shou Ya <shouya@users.noreply.github.com>
Authored: Sat Sep 16 17:50:37 2017 -0700
Committer: Donald Szeto <donald@apache.org>
Committed: Sat Sep 16 17:51:30 2017 -0700

----------------------------------------------------------------------
 lib/predictionio/event_client.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-predictionio-sdk-ruby/blob/03b7c4ba/lib/predictionio/event_client.rb
----------------------------------------------------------------------
diff --git a/lib/predictionio/event_client.rb b/lib/predictionio/event_client.rb
index 75428e8..567057d 100644
--- a/lib/predictionio/event_client.rb
+++ b/lib/predictionio/event_client.rb
@@ -112,7 +112,7 @@ module PredictionIO
     # See also #create_event.
     def acreate_event(event, entity_type, entity_id, optional = {})
       h = optional.with_indifferent_access
-      h.key?('eventTime') || h['eventTime'] = DateTime.now.to_s
+      h.key?('eventTime') || h['eventTime'] = DateTime.now.iso8601
       h['event'] = event
       h['entityType'] = entity_type
       h['entityId'] = entity_id


Mime
View raw message