Permalink
Browse files

Rename DATE_FORMAT -> DATETIME_FORMAT and introduce DATE_FORMAT for d…

…ate-only params
  • Loading branch information...
1 parent 6c9843e commit 902228948bab1b8801b317cab08eaf418ac843cb @samleb samleb committed Feb 23, 2013
Showing with 4 additions and 2 deletions.
  1. +1 −0 README.md
  2. +3 −2 lib/active_merchant/billing/gateways/payline/payline_common.rb
View
@@ -34,6 +34,7 @@ A beta release will be considered when this list is complete:
* Add support for missing Direct Payment API methods
* Add support for missing Web Payment API methods
+* Handle timezones properly (Payline probably uses CET)
* Implement unit tests
* Implement remote tests using [Payline Homologation] [2]
@@ -11,7 +11,8 @@ module PaylineCommon
LOG_FILTERED_TAGS = %w( number cvx ).freeze
- DATE_FORMAT = "%d/%m/%Y %H:%M".freeze
+ DATE_FORMAT = "%d/%m/%Y".freeze
+ DATETIME_FORMAT = "#{DATE_FORMAT} %H:%M".freeze
SUCCESS_MESSAGES = {
# Card & Check
@@ -144,7 +145,7 @@ def language_code(locale)
end
def format_date(time)
- time.strftime(DATE_FORMAT)
+ time.strftime(DATETIME_FORMAT)
end
def format_boolean(boolean, default = false)

0 comments on commit 9022289

Please sign in to comment.