You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prod - Director shows invalid appointment date #33328
@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
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.
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.
Activity
kialj876 commentedon May 14, 2026
@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+00argush3 commentedon May 14, 2026
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.
Mihai-QuickSilverDev commentedon May 14, 2026
kialj876 commentedon May 14, 2026
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 removedI 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
this means that every migrated appointment date, cessation date, and last_ar_date is probably ahead by 1 dayit seems several migrated companies that I am checking have mapped this correctly.