On Sun, Aug 2, 2009 at 7:02 PM, 孫 皓<[email protected]> wrote:
>
>  i found that time in ruote-web2 are in UTC format
>  -----------
>  last_modified=Sun, 02 Aug 2009 09:56:13 UTC +00:00
>  -----------
>
>  I would like to change it to JSP time
>  timeout property in UTC time zone will confuse my boss/professor in
> my lab ;)
>
>  Any configuration ? or must hacking into the source ?

Hello 孫 皓,

I guess you have to hack the source code.

'last_modified' uses a Ruby Time instance, calling to_s will output
the "local" string, for example :

  >> Time.now.to_s
  => "Sun Aug 02 19:31:08 +0900 2009"

The workitem as stored in ActiveRecord uses the "timestamp" type.
Maybe you could have a look at :

  http://caboo.se/doc/classes/ActiveRecord/Timestamp.html

or

  
http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&q=activerecord+timestamp+utc


Still preparing my reply to your previous question. Best regards,

-- 
John Mettraux   -   http://jmettraux.wordpress.com

--~--~---------~--~----~------------~-------~--~----~
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to