Project

General

Profile

Revision c089b4e4

IDc089b4e449c1310504ea19787fe4eaa5abd809d4
Parent 4883173c
Child c30cf437

Added by Katja Luther about 3 years ago

minor

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/reference/ReferenceDetailElement.java
10 10
package eu.etaxonomy.taxeditor.ui.section.reference;
11 11

  
12 12

  
13
import java.time.ZonedDateTime;
13

  
14 14
import java.util.ArrayList;
15 15
import java.util.Arrays;
16 16
import java.util.List;
17 17

  
18 18
import org.eclipse.swt.SWT;
19 19
import org.eclipse.swt.widgets.Display;
20
import org.joda.time.DateTime;
20 21

  
21 22
import eu.etaxonomy.cdm.common.CdmUtils;
22 23
import eu.etaxonomy.cdm.model.agent.AgentBase;
......
188 189
	}
189 190

  
190 191
	private void createWebPageControls(ReferenceDetailElement referenceDetailElement, Reference reference, int style) {
191
		ZonedDateTime accessed = null;
192
		if (reference.getAccessed() != null){
193
			accessed = DateConverter.convertJoda2ZonedDateTime(reference.getAccessed());
194
		}
192
		DateTime accessed = reference.getAccessed();
193
		
195 194
		 text_accessed = formFactory.createDateElement(referenceDetailElement, "Accessed", accessed, style, false);
196 195
		
197 196
	}
......
486 485
		} else if (eventSource == text_volume) {
487 486
			getEntity().setVolume(text_volume.getText());
488 487
		}else if (eventSource == text_accessed.getController()) {
489
			getEntity().setAccessed(DateConverter.convertZonedDateTime2Joda(text_accessed.getController().getDateTime()));
488
			getEntity().setAccessed(text_accessed.getController().getDateTime());
490 489
		}
491 490

  
492 491
		if (eventSource != text_title && eventSource != text_abbrevTitle) {

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)