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

Update (now archived) Oozy Rat from Geocaching.com in 2023 #1196

Merged
merged 3 commits into from
Oct 26, 2023
Merged

Conversation

GPSBabelDeveloper
Copy link
Collaborator

Downloaded from cache page, not a PQ.

@codacy-production
Copy link

codacy-production bot commented Oct 25, 2023

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
-0.07% 100.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (1aa1554) 23104 16005 69.27%
Head commit (88d4ef6) 23104 (+0) 15989 (-16) 69.21% (-0.07%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#1196) 2 2 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

@tsteven4
Copy link
Collaborator

My preference is that input reference files from an external source are used exactly as produced from the source.

@robertlipe
Copy link
Collaborator

Oh, yes. The old "the logged time was close to midnight and my $TZ is different than the Github runner's so the date rolls over" trick.

Joy.

@tsteven4
Copy link
Collaborator

Possible solutions:

  1. add utc option to html writer, e.g. like xcsv writer.
  2. conditionally run test in fixed time zone like xcsv.test
if command -v tzselect >/dev/null 2>&1 ; then
  export TZ='America/Denver'
  echo "  including xcsv timezone conversion test"

@tsteven4
Copy link
Collaborator

The good news is the date time in the gpx files is now unambiguous. If your okay using UTC dates in html and text then fine, otherwise if you want the local date I think 1. or 2. needs to be implemented.

@robertlipe
Copy link
Collaborator

robertlipe commented Oct 25, 2023 via email

@tsteven4
Copy link
Collaborator

To be pedantic I think both UTC and local time are often the wrong choice, but this is true of almost all our use of local time. I think that when we use the local time of the system processing the data we often really want the local time at the coordinates we are referring to. But, that isn't easy to come by.

Either UTC or local are fine with me for these formats, I'm not sure they are used! Fix 2. is easy to implement and works in CI, so nothing sneak by. Fix 1, especially with UTC=n, gives the user an opportunity to correct, e.g. for the processing location and data collection location being in different time zones. But I am fine with it as it is.

As an aside I'm in no mood to support things that violated the schema almost 20 years ago and have disappeared in the interim.

@robertlipe
Copy link
Collaborator

robertlipe commented Oct 26, 2023 via email

@robertlipe robertlipe merged commit c668916 into master Oct 26, 2023
37 checks passed
@robertlipe robertlipe deleted the newgpx branch October 26, 2023 02:20
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.

3 participants