Re: date problem with the server

Colin Law
Fri, 11 Nov 2011 09:40:25 -0000

On 11 November 2011 09:32, honey ruby
<emailtohoneyruby-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at