Skip to content
Snippets Groups Projects
Commit e70ff335 authored by GAYDAMAKHA MIKHAIL's avatar GAYDAMAKHA MIKHAIL
Browse files

Merge branch 'develop' into 'master'

:bug: fix web registry format date again

See merge request !43
parents f7772386 c63f3741
Branches
1 merge request!43:bug: fix web registry format date again
......@@ -19,6 +19,7 @@ import java.util.logging.Level;
import java.util.logging.Logger;
import fr.unistra.sil.erp.back.repository.IRegistryRepository;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
......@@ -69,7 +70,7 @@ public class WebRegistryController {
RegistryEntry entry = new RegistryEntry(
0,
registryInfo.getTransactionType(),
(new SimpleDateFormat("yyyy-MM-ddTHH:mm")).parse(registryInfo.getDate()),
(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm")).parse(registryInfo.getDate()),
registryInfo.getAccountId(),
registryInfo.getDebit(),
registryInfo.getCredit(),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment