On 11 November 2011 09:32, honey ruby <[email protected]> wrote: > hi every one i have problem with the date with the server. i am from > india . when i use Date.today before 12 in the morning hours IST . it > is showing yesterday date in my website and after 12 it is fine it > shows today's date. i am using wit UTC . now i cant go wit Time.Zone. > i have to change lot .so any one can help me plzzzz
If all you want to do is correct that one display without changing anything else then you could just use (Time.now + 12.hours).strftime( ... ) Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

