Project

General

Profile

« Previous | Next » 

Revision 2901517f

Added by Katja Luther over 6 years ago

add 1 to the month to get the right date out of the swt.DateTime

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/mvc/element/DateElement.java
167 167
	
168 168
		  public static org.joda.time.DateTime makeJodaFromSWT(
169 169
		                                org.eclipse.swt.widgets.DateTime widget, org.eclipse.swt.widgets.DateTime dateTime) {
170
			//the first month of the year is 0			  
170 171
		    return new org.joda.time.DateTime(widget.getYear(),
171
		                        widget.getMonth(),
172
		                        widget.getMonth() +1,
172 173
		                        widget.getDay(),
173 174
		                        dateTime.getHours(),
174 175
		                        dateTime.getMinutes(),

Also available in: Unified diff