Sure. Let it be then.

Den torsdagen den 19:e december 2013 skrev Adam von Corswant:

> In izettle-java/src/main/java/com/izettle/java/CalendarUtils.java:
>
> > +	}
> > +
> > +	/**
> > +	 * Figures out the first instant for the date String, given the provided time zone
> > +	 *
> > +	 * @param timeZoneId The time zone of the spectator
> > +	 * @param dateString the date String (yyyy-MM-dd)
> > +	 * @return The Date of the first instant of the provided date String
> > +	 * @throws ParseException when the date String is in the wrong format (yyyy-MM-dd)
> > +	 */
> > +	public static Date getFirstInstantOfDay(TimeZoneId timeZoneId, String dateString) throws ParseException {
> > +		DateFormat formatter = TimeUtils.createDateFormatter(timeZoneId);
> > +		return formatter.parse(dateString);
> > +	}
> > +
> > +	public static enum CalendarField {
>
> Argh. Cannot let this go. Sorry for my stubbornness, but I have a really
> hard time changing to something I feel is not better than it was ;)
>
> For a calendar, it's not a unit. It's a *field*. See for example how
> postgresql documents their function:
> http://www.postgresql.org/docs/9.1/static/functions-datetime.html#FUNCTIONS-DATETIME-TRUNC
> or, java.util.Calendar...
>
> Sorry for beintg
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/iZettle/izettle-toolbox/pull/32/files#r8469543>
> .
>