Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use timezone in value submitted #1

Open
olliekav opened this issue May 21, 2016 · 3 comments
Open

Don't use timezone in value submitted #1

olliekav opened this issue May 21, 2016 · 3 comments

Comments

@olliekav
Copy link

olliekav commented May 21, 2016

Hi, this is probably really basic but I can work out how to do it!

Currently the input is submitting with...

<input id="observation_observed_on_hidden" type="hidden" value="2016-05-21 12:42:42 -0400" name="observation[observed_on]">

but how can I get it to submit without the timezone as...

<input id="observation_observed_on_hidden" type="hidden" value="2016-05-21 12:42:42" name="observation[observed_on]">

I'm calling the datepicker with...

<%= f.datetime_picker :observed_on, value: Time.zone.now.strftime("%FT%R"), required: true, step: 1, max: Time.zone.now.strftime("%FT%R"), data: { showTodayButton: true, keepOpen: false, allowInputToggle: true, sideBySide: true, maxDate: 'now' } %>

@rexblack
Copy link
Member

Hi,
many thanks for reporting an issue. I'll try to get into it asap. In the meanwhile, please let me know, if you were testing with master branch or release? Because i recently fixed some timezone issues, although i think that this is another one...
Best regards, Rafael

@olliekav
Copy link
Author

This was using the release, I'll give the master branch a shot though and see if that works.

@olliekav
Copy link
Author

Master branch didn't fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants