On 15 September 2013 15:51, John Merlino <[email protected]> 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 [email protected].
> To post to this group, send email to [email protected].
> 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 [email protected].
To post to this group, send email to [email protected].
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.

Reply via email to