Timezone offset does not match system offset

Hi everyone,

I’m getting a error about timezone and I could not fix it at the moment.

source /tools/Anaconda2/ENV_for_Anaconda2
conda activate qiime2-2019.7

qiime tools import --type ‘SampleData[PairedEndSequencesWithQuality]’ --input-path $input_dir_FASTQ --input-format CasavaOneEightSingleLanePerSampleDirFmt --output-path $output_imported_FASTQ

Traceback (most recent call last):
File “/home/gcurty/.conda/envs/qiime2-2019.7/lib/python3.6/site-packages/q2cli/builtin/tools.py”, line 154, in import_data
view_type=input_format)
File “/home/gcurty/.conda/envs/qiime2-2019.7/lib/python3.6/site-packages/qiime2/sdk/result.py”, line 241, in import_data
validate_level=‘max’)
File “/home/gcurty/.conda/envs/qiime2-2019.7/lib/python3.6/site-packages/qiime2/sdk/result.py”, line 273, in _from_view
provenance_capture=provenance_capture)
File “/home/gcurty/.conda/envs/qiime2-2019.7/lib/python3.6/site-packages/qiime2/core/archive/archiver.py”, line 316, in from_data
Format.write(rec, type, format, data_initializer, provenance_capture)
File “/home/gcurty/.conda/envs/qiime2-2019.7/lib/python3.6/site-packages/qiime2/core/archive/format/v5.py”, line 21, in write
provenance_capture)
File “/home/gcurty/.conda/envs/qiime2-2019.7/lib/python3.6/site-packages/qiime2/core/archive/format/v1.py”, line 26, in write
prov_dir, [root / cls.METADATA_FILE, archive_record.version_fp])
File “/home/gcurty/.conda/envs/qiime2-2019.7/lib/python3.6/site-packages/qiime2/core/archive/provenance.py”, line 312, in finalize
self.write_action_yaml()
File “/home/gcurty/.conda/envs/qiime2-2019.7/lib/python3.6/site-packages/qiime2/core/archive/provenance.py”, line 289, in write_action_yaml
fh.write(yaml.dump({‘execution’: self.make_execution_section()},
File “/home/gcurty/.conda/envs/qiime2-2019.7/lib/python3.6/site-packages/qiime2/core/archive/provenance.py”, line 255, in make_execution_section
runtime[‘start’] = start = self._ts_to_date(self.start)
File “/home/gcurty/.conda/envs/qiime2-2019.7/lib/python3.6/site-packages/qiime2/core/archive/provenance.py”, line 249, in _ts_to_date
return datetime.fromtimestamp(ts, tzlocal.get_localzone())
File “/home/gcurty/.conda/envs/qiime2-2019.7/lib/python3.6/site-packages/tzlocal/unix.py”, line 165, in get_localzone
_cache_tz = _get_localzone()
File “/home/gcurty/.conda/envs/qiime2-2019.7/lib/python3.6/site-packages/tzlocal/unix.py”, line 128, in _get_localzone
utils.assert_tz_offset(tz)
File “/home/gcurty/.conda/envs/qiime2-2019.7/lib/python3.6/site-packages/tzlocal/utils.py”, line 38, in assert_tz_offset
raise ValueError(msg)
ValueError: Timezone offset does not match system offset: -10800 != -7200. Please, check your config files.

An unexpected error has occurred:

Timezone offset does not match system offset: -10800 != -7200. Please, check your config files.

I will appreciate any suggestion to fix it.
Thanks,
Gislaine.

1 Like

Hi @Gislaine_Curty!

This error message has to do with how your local environment’s timezone is set up, please see this issue for more details:

A good place to start is to run the command env, and double-check any of the timezone-related variables that might be set there. If you are running on a shared compute resource (like an HPC cluster), I would recommend reaching out to your sysadmin.

1 Like