diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2013-05-31 18:24:29 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2013-05-31 18:24:29 +0200 |
| commit | c666e425a27e708de70fddc486c2d970845979fb (patch) | |
| tree | 30936c9f954ae7e030d18d87c727f72e964b773a /main/src/cgeo | |
| parent | e9cafaceb96096a457ffb80889ab7cf0c4556640 (diff) | |
| parent | d6046fba9b63fa2ef5a6d1b86a88cbefbdfaf76a (diff) | |
| download | cgeo-c666e425a27e708de70fddc486c2d970845979fb.zip cgeo-c666e425a27e708de70fddc486c2d970845979fb.tar.gz cgeo-c666e425a27e708de70fddc486c2d970845979fb.tar.bz2 | |
Merge branch 'release'
Diffstat (limited to 'main/src/cgeo')
| -rw-r--r-- | main/src/cgeo/geocaching/connector/gc/GCParser.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/connector/gc/GCParser.java b/main/src/cgeo/geocaching/connector/gc/GCParser.java index 5c31d97..f9c5fba 100644 --- a/main/src/cgeo/geocaching/connector/gc/GCParser.java +++ b/main/src/cgeo/geocaching/connector/gc/GCParser.java @@ -979,6 +979,11 @@ public abstract class GCParser { "ctl00$ContentBody$LogBookPanel1$uxDateVisited$Month", Integer.toString(month), "ctl00$ContentBody$LogBookPanel1$uxDateVisited$Day", Integer.toString(day), "ctl00$ContentBody$LogBookPanel1$uxDateVisited$Year", Integer.toString(year), + "ctl00$ContentBody$LogBookPanel1$DateTimeLogged", String.format("%02d", month) + "/" + String.format("%02d", day) + "/" + String.format("%04d", year), + "ctl00$ContentBody$LogBookPanel1$DateTimeLogged$Month", Integer.toString(month), + "ctl00$ContentBody$LogBookPanel1$DateTimeLogged$Day", Integer.toString(day), + "ctl00$ContentBody$LogBookPanel1$DateTimeLogged$Year", Integer.toString(year), + "ctl00$ContentBody$LogBookPanel1$LogButton", "Submit Log Entry", "ctl00$ContentBody$LogBookPanel1$uxLogInfo", logInfo, "ctl00$ContentBody$LogBookPanel1$btnSubmitLog", "Submit Log Entry", "ctl00$ContentBody$LogBookPanel1$uxLogCreationSource", "Old", @@ -1167,17 +1172,24 @@ public abstract class GCParser { "ctl00$ContentBody$LogBookPanel1$tbCode", trackingCode); Login.putViewstates(params, viewstates); if (currentDate.get(Calendar.YEAR) == year && (currentDate.get(Calendar.MONTH) + 1) == month && currentDate.get(Calendar.DATE) == day) { + params.put("ctl00$ContentBody$LogBookPanel1$DateTimeLogged", ""); params.put("ctl00$ContentBody$LogBookPanel1$uxDateVisited", ""); } else { + params.put("ctl00$ContentBody$LogBookPanel1$DateTimeLogged", Integer.toString(month) + "/" + Integer.toString(day) + "/" + Integer.toString(year)); params.put("ctl00$ContentBody$LogBookPanel1$uxDateVisited", Integer.toString(month) + "/" + Integer.toString(day) + "/" + Integer.toString(year)); } params.put( + "ctl00$ContentBody$LogBookPanel1$DateTimeLogged$Day", Integer.toString(day), + "ctl00$ContentBody$LogBookPanel1$DateTimeLogged$Month", Integer.toString(month), + "ctl00$ContentBody$LogBookPanel1$DateTimeLogged$Year", Integer.toString(year), "ctl00$ContentBody$LogBookPanel1$uxDateVisited$Day", Integer.toString(day), "ctl00$ContentBody$LogBookPanel1$uxDateVisited$Month", Integer.toString(month), "ctl00$ContentBody$LogBookPanel1$uxDateVisited$Year", Integer.toString(year), "ctl00$ContentBody$LogBookPanel1$uxLogInfo", logInfo, "ctl00$ContentBody$LogBookPanel1$btnSubmitLog", "Submit Log Entry", - "ctl00$ContentBody$uxVistOtherTrackableTB", ""); + "ctl00$ContentBody$uxVistOtherTrackableTB", "", + "ctl00$ContentBody$LogBookPanel1$LogButton", "Submit Log Entry", + "ctl00$ContentBody$uxVistOtherListingGC", ""); final String uri = new Uri.Builder().scheme("http").authority("www.geocaching.com").path("/track/log.aspx").encodedQuery("wid=" + tbid).build().toString(); final String page = Login.postRequestLogged(uri, params); |
