mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 17:29:51 +00:00
Migrate time zone from abstract method to simple property.
This commit is contained in:
parent
bff85b9f6c
commit
e691e7c2fb
16 changed files with 52 additions and 115 deletions
|
@ -339,7 +339,7 @@ public final class BvgProvider extends AbstractHafasProvider
|
|||
if (mHead.matches())
|
||||
{
|
||||
final String[] placeAndName = splitPlaceAndName(ParserUtils.resolveEntities(mHead.group(1)));
|
||||
final Calendar currentTime = new GregorianCalendar(timeZone());
|
||||
final Calendar currentTime = new GregorianCalendar(timeZone);
|
||||
currentTime.clear();
|
||||
parseDateTime(currentTime, mHead.group(2));
|
||||
|
||||
|
@ -372,7 +372,7 @@ public final class BvgProvider extends AbstractHafasProvider
|
|||
final Matcher mDepFine = P_DEPARTURES_LIVE_FINE.matcher(mDepCoarse.group(1));
|
||||
if (mDepFine.matches())
|
||||
{
|
||||
final Calendar parsedTime = new GregorianCalendar(timeZone());
|
||||
final Calendar parsedTime = new GregorianCalendar(timeZone);
|
||||
parsedTime.setTimeInMillis(currentTime.getTimeInMillis());
|
||||
ParserUtils.parseEuropeanTime(parsedTime, mDepFine.group(1));
|
||||
|
||||
|
@ -438,7 +438,7 @@ public final class BvgProvider extends AbstractHafasProvider
|
|||
if (mHead.matches())
|
||||
{
|
||||
final String[] placeAndName = splitPlaceAndName(ParserUtils.resolveEntities(mHead.group(1)));
|
||||
final Calendar currentTime = new GregorianCalendar(timeZone());
|
||||
final Calendar currentTime = new GregorianCalendar(timeZone);
|
||||
currentTime.clear();
|
||||
ParserUtils.parseGermanDate(currentTime, mHead.group(2));
|
||||
final List<Departure> departures = new ArrayList<Departure>(8);
|
||||
|
@ -449,7 +449,7 @@ public final class BvgProvider extends AbstractHafasProvider
|
|||
final Matcher mDepFine = P_DEPARTURES_PLAN_FINE.matcher(mDepCoarse.group(1));
|
||||
if (mDepFine.matches())
|
||||
{
|
||||
final Calendar parsedTime = new GregorianCalendar(timeZone());
|
||||
final Calendar parsedTime = new GregorianCalendar(timeZone);
|
||||
parsedTime.setTimeInMillis(currentTime.getTimeInMillis());
|
||||
ParserUtils.parseEuropeanTime(parsedTime, mDepFine.group(1));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue