Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MATLAB errorThe system time zone setting, '/UTC', is not valid due to default timezone setting #35

Open
craig-willis opened this issue Nov 23, 2021 · 0 comments

Comments

@craig-willis
Copy link
Collaborator

Problem
Reported via Slack:

Screen Shot 2021-11-23 at 3 27 20 PM

When using the default timezone via repo2docker, MATLAB returns

Error using datetime (line 551)
The system time zone setting, '/UTC', is not valid. See the datetime.TimeZone 
property for details about specifying time zones.

To Repeat:

  • Create a new MATLAB Desktop R2020b tale
  • Run datetime(2014,3,8:9,6,0,0,'TimeZone','local', 'Format','d-MMM-y HH:mm:ss Z')
  • Run system("cat /etc/timezone") returns /UTC

MATLAB doesn't seem to handle the /UTC value instead expecting UTC.

Possible solutions

  • Don't use local...
  • Specify UTC timezone during r2d build either generally or in MATLAB buildpack, since it's the only one that cares
  • Mount host timezones during container start
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

No branches or pull requests

1 participant