SOLM 1.2b1 RTF Avatar
  1. OMG Issue

SOLM12 — SpacePython SpecificTime and waitUtil() has timezone issues

  • Key: SOLM12-28
  • Status: closed  
  • Source: Kratos RT Logic, Inc. ( Mr. Justin Boss)
  • Summary:

    SpecificTime class should support providing a timezone and the waitUntil() function should support timezones that have a timezone.

  • Reported: SOLM 1.1 — Tue, 4 Feb 2025 21:32 GMT
  • Disposition: Resolved — SOLM 1.2b1
  • Disposition Summary:

    Update SpacePython to support timezone being specified in SpecificTime class

    SpecificTime should allow providing time strings that have a timezone.
    waitUntil() function should respect the timezone of the field provided.
    waitUntil() is also being updated to work with SpecificTime or the underlying timedate type.

    Line 49: Change to:
    t = datetime.datetime.now(tz)

    Line 51: Change to:
    t.second, t.microsecond, tz)

    Line 56 (added after Line 55):
    May optionally end with a timezone indicator, such as Z.

    Lines 62-68 replaced with:
    t = datetime.datetime.fromisoformat(strval)

    Line 70 replaced with:
    t.second, t.microsecond, t.tzinfo)

    Line 186 replaced with:
    def waitUntil(specificTime:datetime.datetime) -> None: #Normative

    Line 192 replaced with:

    1. use same timezone for now as the provided datetime
      now = SpecificTime.now(specificTime.tzinfo)

    Complete changes are in the attached patch file against the changes as a result of SOLM12-6.

  • Updated: Tue, 1 Jul 2025 15:03 GMT
  • Attachments: