Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat: 🚧 add timezone_offset in create/edit time-entry #464
  • Loading branch information
Angeluz-07 committed Jul 9, 2020
commit d43c07251fe8c9dfa5ad726ccd58756b1a691fc9
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export class DetailsFieldsComponent implements OnChanges, OnInit {
start_date: new Date(`${entryDate}T${this.entryForm.value.start_hour.trim()}`).toISOString(),
end_date: new Date(`${entryDate}T${this.entryForm.value.end_hour.trim()}`).toISOString(),
uri: this.entryForm.value.uri,
timezone_offset: new Date().getTimezoneOffset(),
};
if (this.goingToWorkOnThis) {
delete entry.end_date;
Expand Down