Skip to content

Commit

Permalink
Rename DATE_FORMAT -> DATETIME_FORMAT and introduce DATE_FORMAT for d…
Browse files Browse the repository at this point in the history
…ate-only params
  • Loading branch information
samleb committed Feb 23, 2013
1 parent 6c9843e commit 9022289
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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 Direct Payment API methods
* Add support for missing Web Payment API methods * Add support for missing Web Payment API methods
* Handle timezones properly (Payline probably uses CET)
* Implement unit tests * Implement unit tests
* Implement remote tests using [Payline Homologation] [2] * Implement remote tests using [Payline Homologation] [2]


Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ module PaylineCommon


LOG_FILTERED_TAGS = %w( number cvx ).freeze 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 = { SUCCESS_MESSAGES = {
# Card & Check # Card & Check
Expand Down Expand Up @@ -144,7 +145,7 @@ def language_code(locale)
end end


def format_date(time) def format_date(time)
time.strftime(DATE_FORMAT) time.strftime(DATETIME_FORMAT)
end end


def format_boolean(boolean, default = false) def format_boolean(boolean, default = false)
Expand Down

0 comments on commit 9022289

Please sign in to comment.