SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru
    Join Date
    May 2003
    Location
    virginia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Rails: datetime_select

    Hi,

    I've searched for this and can't find an answer so I'm hoping someone here can help!

    I've got a datetime_select and would like to be able to have 12 hour time, with a pm/am selector. Is this possible with this tag? Or is this a custom job?

    Alternatively, can you recommend a customize-able calendar for selecting a date?

    - matt

  2. #2
    SitePoint Evangelist
    Join Date
    Jun 2004
    Location
    California
    Posts
    440
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well looking at the select_hour source in the API (http://api.rubyonrails.com/classes/A...r.html#M000367) you can see that the 0.upto(23) is hardcoded... so that is a custom job.

    And I couldnt find anything to do AM/PM although that could be an easy custom job wouldnt it?

  3. #3
    SitePoint Guru
    Join Date
    May 2003
    Location
    virginia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You mean with a view helper?

  4. #4
    SitePoint Evangelist
    Join Date
    Jun 2004
    Location
    California
    Posts
    440
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by mwmitchell
    You mean with a view helper?
    Yes.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •