I already tried that mate! No joy.
Now this ruby script is the Java equivalent of an application - not
rendered through a browser. Does that make a difference? This is list
of my gems -
*** LOCAL GEMS ***
actionmailer (2.1.1, 2.1.0)
actionpack (2.1.1, 2.1.0)
activerecord (2.1.1, 2.1.0)
activeresource (2.1.1, 2.1.0)
activesupport (2.1.1, 2.1.0)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
fastthread (1.0.1)
gem_plugin (0.2.3)
jicksta-adhearsion (0.7.999)
log4r (1.0.5)
mbleigh-subdomain-fu (0.0.2)
mongrel (1.1.5)
mysql (2.7)
rails (2.1.1, 2.1.0)
rake (0.8.2, 0.8.1)
rspec (1.1.4)
rubigen (1.3.2)
I'm using a MYSQL 5.0.45 for a the database. The field is defined as a DateTime.
This is the line of code that I can not get into localtime -
start_time = evt.start_time.in_time_zone('Arizona')
DB value : 2008-11-17 15:00:00
However, the same line of code on a web portal displays the correct localtime.
On my portal page : Monday Nov 17 8am
In my ruby app. the value of start_time is : 2008-11-17 15:00:00 -0700
Not very helpful!
Many thanks for your kind assistance.
C.