Project

General

Profile

Revision 2901517f

ID2901517f003265e83153dbc850ab9e59e08fe27a
Parent ce91a930
Child 6bb3f242, 8e0843b5

Added by Katja Luther over 3 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

Add picture from clipboard (Maximum size: 40 MB)