Skip to content

Issue-2254: fix date setting in meter data form#2267

Merged
rmroot merged 1 commit intodevelopfrom
issue-2254-new-bill
Feb 25, 2026
Merged

Issue-2254: fix date setting in meter data form#2267
rmroot merged 1 commit intodevelopfrom
issue-2254-new-bill

Conversation

@rmroot
Copy link
Copy Markdown
Member

@rmroot rmroot commented Feb 25, 2026

connects #2254
This pull request primarily addresses improvements in date parsing for meter data forms and includes minor code cleanups. The most significant changes are focused on how date values are handled when updating meter data, replacing JavaScript Date object parsing with explicit string splitting and parsing. Additionally, there are minor removals of unused code and console logs.

Date parsing improvements:

  • Changed the way dates are parsed in both updateElectricityMeterDataFromForm and updateGeneralMeterDataFromForm in utility-meter-data.service.ts to use string splitting and parseInt instead of the JavaScript Date constructor, improving reliability and clarity of date extraction. [1] [2]

Code cleanup:

  • Removed an unnecessary console.log statement from the EditBillComponent to clean up debug output.
  • Removed an unused import of IdbCustomGWP from edit-electricity-bill.component.ts to tidy up imports.

@rmroot rmroot merged commit e3e599b into develop Feb 25, 2026
3 checks passed
@rmroot rmroot deleted the issue-2254-new-bill branch March 18, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant