# HowTo create a Time object and set the TZ-offset

**URL:** <https://www.ruby-forum.com/t/howto-create-a-time-object-and-set-the-tz-offset/149315>\
**Category:** Rails\
**Created:** [September 23, 2008, 3:02pm UTC](https://www.ruby-forum.com/t/howto-create-a-time-object-and-set-the-tz-offset/149315 "2008-09-23T15:02:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeanluca](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/74df32/32.png) [@jeanluca](https://www.ruby-forum.com/u/jeanluca)\
**Post date:** [September 23, 2008, 3:02pm UTC](https://www.ruby-forum.com/t/howto-create-a-time-object-and-set-the-tz-offset/149315/1 "2008-09-23T15:02:11Z")

</div>

Hi All

I need to make a Time object and set the timezone offset. Anyone an  
example ?  
Right now it uses the default TZ of my RoR project!

Thnx a lot  
Lucas
