-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from mbta/pwd-populate_datetime_for_heat
Include current date/time in HEAT messages
- Loading branch information
Showing
5 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ config :feedback, | |
support_ticket_reply_email: System.get_env("SUPPORT_TICKET_REPLY_EMAIL") || "[email protected]", | ||
mailgun_domain: System.get_env("MAILGUN_DOMAIN") || "", | ||
mailgun_key: System.get_env("MAILGUN_API_KEY") || "", | ||
test_mail_file: "/tmp/mailgun.json" | ||
test_mail_file: "/tmp/mailgun.json", | ||
time_fetcher: DateTime | ||
|
||
import_config "#{Mix.env()}.exs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
use Mix.Config | ||
|
||
config :feedback, | ||
time_fetcher: Feedback.FakeDateTime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
defmodule Feedback.FakeDateTime do | ||
@moduledoc "Mock DateTime module for testing" | ||
|
||
def utc_now do | ||
# This timestamp is July 8 2019, 08:04:03 UTC | ||
{:ok, test_time} = DateTime.from_unix(1_562_573_043) | ||
test_time | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters