Skip to content

Prod - Director shows invalid appointment date #33328

Open
0 of 1 issue completed
Open

Description

@Mihai-QuickSilverDev

Description of issue:

  • Director appointment date might show one day later.
  • In this case the Incorporation Date was March 12, but the Director shows appointed on March 13.
  • Potentially caused by the handling of the UTC date format

image.png

To Do List:

  • @argush3 confirmed that data was migrated correctly from COLIN.
  • This could be caused either by front end UI, or backend API
  • Determine what is causing it and remediate it.

Impact - Major, because is in Prod

  • Any Director appointed less than 8 hours from midnight would show an appointing date which is one day later.

@mstanton1

Sub-issues

Sub-issues

0 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    Entities Team
    bug
    on May 5, 2026
  2. self-assigned this
    on May 13, 2026
  3. kialj876 commented on May 14, 2026

    @kialj876
    Collaborator

    @Mihai-QuickSilverDev I've confirmed the date conversion does not have a bug as far as how we do things in the modernized system. We expect the appointment date to be saved in a specific way though so I think the migration probably isn't following the same rules (i.e. if its just saving it as a regular datetime from colin without any conversion then it would cause this problem).

    @argush3 we expect the appointment_date, cessation_date, last_ar_date, last_agm_date, and fiscal_year_end_date (not sure fiscal_year_end_date is actually set in the modernized system by anything anymore) to all be set like: <pacific date of filing> 00:00:00+00

    • very counterintuitive because its technically saved as the wrong date in our db, but this is how we apply it in the filer and how we expect it to be in the legal-api - essentially its a utc datetime that we treat as pacific (no conversion happens in our response - changing it to do this would require a major data fix). This means when converting from colin data you will need to convert it to pacific and then override the time string and timezone
  4. argush3 commented on May 14, 2026

    @argush3
    Contributor

    Seems a bit strange this is only coming up now as we have been migrating corps over for awhile now. Even if it isn't super high volume. We'll dig into this a bit more on our side.

  5. Mihai-QuickSilverDev commented on May 14, 2026

    @Mihai-QuickSilverDev
    CollaboratorAuthor
    • There is a strong chance that users might not stumble over this detail.
    • @argush3 If you give me a list of companies coming from COLIN incorporated after 4 PM, I can quickly check if this is a global problem.
  6. kialj876 commented on May 14, 2026

    @kialj876
    Collaborator

    Yeah - you can compare against modernized data prod incorporations to be 100% sure (I don't have gcp access right now), but that is what the code is doing and expecting and its what I see in the dev data copy I have.
    In the filer we save the value from the filing which is formatted as a date (i.e. '2017-03-12') with no time string into the db so it ends up as '2017-03-12 00:00:00+00' and when we return this value on the API side we do it like: datetime.date(party_role.appointment_date).isoformat() - no conversion and time string / timezone info is removed

    I double checked this for party role appointment_date + cessation_date and business last_ar_date + last_agm_date and verified it against what I could without gcp access (my dev copy is a pretty recent copy of dev though and I was checking recent filings for director change / incorporation)

    edit / confirmation

    • I was just recently granted GCP access and I confirmed with an incorporation application filed and completed on '2026-05-14 16:11:21.356512+00' (this is still '2026-05-14' when converted to pacific time). The resulting application_date for the director is '2026-05-14 00:00:00+00'. Technically this is 2026-05-13 pacific time, but this is how we expect it to be saved and we return it as '2026-05-14' in the api response
    • this means that every migrated appointment date, cessation date, and last_ar_date is probably ahead by 1 day it seems several migrated companies that I am checking have mapped this correctly.
  7. added
    Entities - Data Migration
    on May 15, 2026
  8. removed
    Entities Team
    on Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Entities - Data Migrationbugprod defect

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions