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

Support time location on form binding #1117

Merged

Conversation

delphinus
Copy link

ref #801

This enables to specify the location to time.Time type in form binding. It uses time_location tag.

type T struct{
        Time time.Time `form:"a_time" time_format:"02/01/2006" time_location:"Asia/Tokyo"`
}

@codecov
Copy link

codecov bot commented Sep 25, 2017

Codecov Report

Merging #1117 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1117   +/-   ##
=======================================
  Coverage   96.66%   96.66%           
=======================================
  Files          16       16           
  Lines        1707     1707           
=======================================
  Hits         1650     1650           
  Misses         49       49           
  Partials        8        8

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5afc5b1...dd83286. Read the comment docs.

@appleboy appleboy merged commit a8c5394 into gin-gonic:master Sep 28, 2017
@delphinus delphinus deleted the feature/detect-location-in-form-time branch September 28, 2017 14:39
tonyhhyip pushed a commit to ysitd-cloud/gin that referenced this pull request Feb 20, 2018
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

Successfully merging this pull request may close these issues.

2 participants