On 15 September 2013 15:51, John Merlino
<stoicism1-YDxpq3io04c@public.gmane.org> wrote:> When using DateTime.now, does the "now" method return the time
based on the
> remote OS system time or the local time where the user actually invoked the
> "now" method, if they are using ssh and running the commands in a
rails
> console, for example?
It returns the time on the machine that is running the code, so if
they ssh into a machine to run it then it is the time on the machine
ssh''ed into. How could it be otherwise? The machine ssh''ed
into does
not know anything about the client machine''s time settings.
Colin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/rubyonrails-talk/46b3432f-5ab4-42f8-9ac2-1ea8bb30cbb0%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLstndQE8G6Ru_OKn7_xCfvv-%2B8L4mdVpyY3bZVdPK9HHA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.