Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
Change default date format and put game time oon web page.
Browse files Browse the repository at this point in the history
Fixed #142
  • Loading branch information
Christopher Peplin committed Nov 4, 2010
1 parent a015ac4 commit ec8a27f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/shared/_header.html.haml
Expand Up @@ -9,7 +9,7 @@
%ul
- if current_state
%li
%a{:href => game_path(current_game)}= "$#{number_to_human(current_state.cash)}"
%a{:href => game_path(current_game)}= "#{current_game.time.now} | $#{number_to_human(current_state.cash)}"
- else
%li
%a{:href => games_path} Join a Game
Expand Down
7 changes: 7 additions & 0 deletions config/initializers/date_format.rb
@@ -0,0 +1,7 @@
Date::DATE_FORMATS.merge!(
:default => Date::DATE_FORMATS[:long],
)

Time::DATE_FORMATS.merge!(
:default => " %b %e, %Y %I:%M%p",
)

0 comments on commit ec8a27f

Please sign in to comment.