Open jywarren opened 6 years ago
want to work on this issue as no first-timer-only found. @jywarren
hi @amitsin6h you can take this issue or you can see here for fto candidate(they are close to first-timer issue).
@Gauravano also most of the fto issues are also taken
If you can solve this one that would be great !!
@amitsin6h Are you still looking into this? Would you be interested in pair programming if you are stuck?
@f3mshep yeah sure. I have some issues also , I can also discuss with you.
Hi, all -- let's try to solve this in a new controller method in the users_controller, something like def timezone
-- where we could use code similar to this to create the user tag in the format above:
https://github.com/publiclab/plots2/blob/master/app/controllers/user_tags_controller.rb#L19-L26
What do you think?
We should record peoples' time zones automatically because we're going to need to:
This has some guidance on this: http://nithinbekal.com/posts/rails-user-timezones/
I was hoping we could do this initially with a button on the profile page, that detects time zone and saves it as a profile tag like
timezone:-06:00
ortimezone:+4:30
which we could parse for later use.On the profile page, we should be able to use
addTag(tagname)
:https://github.com/publiclab/plots2/blob/24b67d65f2bd7ec915c83ccbde4566796fede0b3/app/views/tag/_replication.html.erb#L24
Later, we would want to add a follow-up issue of using the
timezone
tag in https://github.com/publiclab/plots2/blob/master/app/views/tag/rss.rss.builder to set the default timezone, using Ruby time zone methods:http://api.rubyonrails.org/classes/ActiveSupport/TimeZone.html#method-i-iso8601