# Time zones - acts\_like? problem

**URL:** <https://www.ruby-forum.com/t/time-zones-acts-like-problem/111938>\
**Category:** Rails\
**Created:** [August 13, 2007, 5:52pm UTC](https://www.ruby-forum.com/t/time-zones-acts-like-problem/111938 "2007-08-13T17:52:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gamafranco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/a9adbd/32.png) [@gamafranco](https://www.ruby-forum.com/u/gamafranco)\
**Post date:** [August 13, 2007, 5:52pm UTC](https://www.ruby-forum.com/t/time-zones-acts-like-problem/111938/1 "2007-08-13T17:52:41Z")

</div>

Hi,

I have just installed TzInfo and TzTime.

One of my models as an attribute named “date”, and I have set:  
tz\_time\_attributes :date

Unfortunately when I display this attribute in a view I get the  
following error:

undefined method `acts\_like?’ for Sun Aug 12 23:00:00 UTC 2007:Time

Has someone seen this error before?

Thanks,  
Tiago F.

---

<div class="post-metadata">

**Author:** ![gamafranco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/a9adbd/32.png) [@gamafranco](https://www.ruby-forum.com/u/gamafranco)\
**Post date:** [August 13, 2007, 6:03pm UTC](https://www.ruby-forum.com/t/time-zones-acts-like-problem/111938/2 "2007-08-13T18:03:32Z")

</div>

On 8/13/07, Gama F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> undefined method `acts\_like?’ for Sun Aug 12 23:00:00 UTC 2007:Time
> 
> Has someone seen this error before?
> 
> Thanks,  
> Tiago F.

The tz\_time\_attributes require edge rails.

–  
Rick O.  
[http://lighthouseapp.com](http://lighthouseapp.com)  
[http://weblog.techno-weenie.net](http://weblog.techno-weenie.net)  
[http://mephistoblog.com](http://mephistoblog.com)

---

<div class="post-metadata">

**Author:** ![gamafranco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/a9adbd/32.png) [@gamafranco](https://www.ruby-forum.com/u/gamafranco)\
**Post date:** [August 13, 2007, 6:11pm UTC](https://www.ruby-forum.com/t/time-zones-acts-like-problem/111938/3 "2007-08-13T18:11:58Z")

</div>

Rick O. wrote:

> On 8/13/07, Gama F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > undefined method `acts\_like?’ for Sun Aug 12 23:00:00 UTC 2007:Time
> > 
> > Has someone seen this error before?
> > 
> > Thanks,  
> > Tiago F.
> 
> The tz\_time\_attributes require edge rails.
> 
> –  
> Rick O.  
> [http://lighthouseapp.com](http://lighthouseapp.com)  
> [http://weblog.techno-weenie.net](http://weblog.techno-weenie.net)  
> [http://mephistoblog.com](http://mephistoblog.com)

Does this mean that it uses a feature that is not yet in the stable  
release of Rails?

Is there an alternative to TzTime for the features it provides?

Thanks,  
Tiago F.
