On Thu, Feb 7, 2013 at 4:54 AM, Saravanan P wrote:
>> You will know the time (in UTC). If you store updated_at, for
>> example, in the local timezone and you have one record with an
>> update_at of 12:00 and another 13:00 (for a different user) then you
>> would not know which came first. If the
> You will know the time (in UTC). If you store updated_at, for
> example, in the local timezone and you have one record with an
> update_at of 12:00 and another 13:00 (for a different user) then you
> would not know which came first. If they are all in UTC then you know
> the exact time it actua
http://railscasts.com/episodes/106-time-zones-in-rails-2-1
http://www.elabs.se/blog/36-working-with-time-zones-in-ruby-on-rails
http://www.elabs.se/blog/36-working-with-time-zones-in-ruby-on-rails
On Thu, Feb 7, 2013 at 4:07 PM, Colin Law wrote:
> On 7 February 2013 10:25, Saravanan P wrot
On 7 February 2013 10:25, Saravanan P wrote:
Please don't top post, it makes it difficult to follow the thread.
Insert your reply at appropriate points in previous message. Thanks.
> Because my application will use in several country so I need to know what
> time they are creating records.
You
Because my application will use in several country so I need to know what
time they are creating records.
On Thu, Feb 7, 2013 at 3:45 PM, Colin Law wrote:
> On 7 February 2013 10:10, Saravanan P wrote:
> > 1.9.3-p286 :001 > Time.zone.now
> > => Thu, 07 Feb 2013 06:34:49 UTC +00:00
> > 1.9.3-p
On 7 February 2013 10:10, Saravanan P wrote:
> 1.9.3-p286 :001 > Time.zone.now
> => Thu, 07 Feb 2013 06:34:49 UTC +00:00
> 1.9.3-p286 :002 > Time.zone = 'Eastern Time (US & Canada)'
> => "Eastern Time (US & Canada)"
> 1.9.3-p286 :003 > Time.zone.now
> => Thu, 07 Feb 2013 01:35:00 EST -05:00
>
>
1.9.3-p286 :001 > Time.zone.now
=> Thu, 07 Feb 2013 06:34:49 UTC +00:00
1.9.3-p286 :002 > Time.zone = 'Eastern Time (US & Canada)'
=> "Eastern Time (US & Canada)"
1.9.3-p286 :003 > Time.zone.now
=> Thu, 07 Feb 2013 01:35:00 EST -05:00
Above is working well.
Case 1:
But i need to store each
On Thu, Feb 7, 2013 at 3:41 AM, Colin Law wrote:
> On 7 February 2013 05:54, Dheeraj Kumar wrote:
>> Read. http://guides.rubyonrails.org/i18n.html
>
> If that does not help then tell us what you mean by it not working.
To add: Just to make things clear if this is you. If you are thinking
that R
On 7 February 2013 05:54, Dheeraj Kumar wrote:
> Read. http://guides.rubyonrails.org/i18n.html
If that does not help then tell us what you mean by it not working.
Colin
>
> --
> Dheeraj Kumar
>
> On Thursday 7 February 2013 at 11:15 AM, Saravanan P wrote:
>
> Hello everyone,
>
> I am using rail
1.9.3-p286 :001 > Time.zone.now
=> Thu, 07 Feb 2013 06:34:49 UTC +00:00
1.9.3-p286 :002 > Time.zone = 'Eastern Time (US & Canada)'
=> "Eastern Time (US & Canada)"
1.9.3-p286 :003 > Time.zone.now
=> Thu, 07 Feb 2013 01:35:00 EST -05:00
On Thu, Feb 7, 2013 at 11:24 AM, Dheeraj Kumar wrote:
> Re
Read. http://guides.rubyonrails.org/i18n.html
--
Dheeraj Kumar
On Thursday 7 February 2013 at 11:15 AM, Saravanan P wrote:
> Hello everyone,
>
> I am using rails 3.2.8.
> I want to change time zone to New York time.
> I changed following, but didn't work
>
> #config/application.rb
> conf
Hello everyone,
I am using rails 3.2.8.
I want to change time zone to New York time.
I changed following, but didn't work
#config/application.rb
config.time_zone = 'Eastern Time (US & Canada)'
config.active_record.default_timezone = 'Eastern Time (US & Canada)'
If am wrong please clarif
12 matches
Mail list logo