In the rails application by default created_at and updated_at filed are stored in UTC format. i want to store created_at and updated_at field in my local timezone i.e in "Chennai" Timezone.
I wrote below to lines in my application.rb file but still my created_at and updated_at fields dates are saved in UTC timezone and not in my local timezone.
config.time_zone = 'Chennai'
config.active_record.default_timezone = :local
Please let me know what wrong i am doing here??
Thanks,
Sanjay Salunkhe