-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Roman/file split feature #161
base: josh/refactor
Are you sure you want to change the base?
Conversation
public static OffsetDateTime convertToOffset(String originalDate, String originalTime, String originalOffset, String newOffset) { | ||
//System.out.println("original: \t" + originalTime + " " + originalOffset + " new offset: "+ newOffset); | ||
|
||
// create a LocalDateTime using the date time passed as parameter | ||
LocalDateTime ldt = LocalDateTime.parse(originalDate + " " + originalTime, DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")); | ||
LocalDateTime ldt = parseDateTime(originalDate + " " + originalTime); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uses parseDateTime method (utilizes multiple parse formats) instead of doing parsing itself.
@@ -98,10 +98,11 @@ private static void initializeConnectionPool() { | |||
config.setUsername(dbUser); | |||
config.setPassword(dbPassword); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should match the Database.java from josh/refactor
@@ -113,7 +113,6 @@ public static void main(String[] arguments) throws SQLException { | |||
* non-existant | |||
* upload. This can cause the upload process to crash. | |||
* | |||
* @param connection is the connection to the database |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ProcessUpload from josh/refactor currently throw errors for me, needs revisiting.
This implementation contains refactoring changes in CSVFileProcessor file to address an issue where several flights can be placed into a single CSV file.
Development Testing:
G3X file was modified to have a valid header. Also entries were modified to emulate large time gape (greater than 5 minutes)
The date from the flight processor was correctly processed as 2 flights