Skip to content

defineEnvironment fails to define app.timezone #414

Closed

Description

@devajmeireles
  • Testbench Version: 9.3.0
  • Testbench Dusk: 9.6.0
  • Laravel Version: 11.21.0
  • PHP Version: 8.3.10
  • Database Driver & Version: N/A

Description:

I'm working on TallStackUI V2 - rewriting some tests and improving our test suite with new methods.

Today, I started working on the Date component and when I tried to set the timezone to America/São_Paulo using defineEnvironment I'm having problems. It doesn't seem to work. I can only edit the timezone via getApplicationTimezone. Should the timezone only be set using getApplicationTimezone?

I'm questioning this because the docs says: "You can also easily override the application's default timezone" - this makes it seem like there is another way.

CleanShot 2024-08-25 at 22 38 45

Result:
CleanShot 2024-08-25 at 22 45 30

Steps To Reproduce:

Try to set the app.timezone via defineEnvironment and check if it will be applied.

Activity

  1. locked and limited conversation to collaborators on Aug 26, 2024
  2. converted this issue into a discussion #415 on Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions