Skip to content

Commit

Permalink
set the timezone to a Django 5 compatible value
Browse files Browse the repository at this point in the history
  • Loading branch information
oliche committed Mar 26, 2024
1 parent 166e8a3 commit 7da1e67
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
2 changes: 1 addition & 1 deletion alyx/alyx/settings_lab_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# ALYX-SPECIFIC
ALLOWED_HOSTS = ['localhost', '127.0.0.1']
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'GB'
TIME_ZONE = 'Europe/London'
GLOBUS_CLIENT_ID = '525cc543-8ccb-4d11-8036-af332da5eafd'
SUBJECT_REQUEST_EMAIL_FROM = '[email protected]'
DEFAULT_SOURCE = 'IBL'
Expand Down
23 changes: 23 additions & 0 deletions alyx/data/migrations/0020_alter_datarepository_timezone.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 5.0 on 2024-03-26 15:27

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("data", "0019_dataset_qc"),
]

operations = [
migrations.AlterField(
model_name="datarepository",
name="timezone",
field=models.CharField(
blank=True,
default="Europe/London",
help_text="Timezone of the server (see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)",
max_length=64,
),
),
]
23 changes: 23 additions & 0 deletions alyx/misc/migrations/0010_alter_lab_timezone.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 5.0 on 2024-03-26 15:27

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("misc", "0009_auto_20211122_1535"),
]

operations = [
migrations.AlterField(
model_name="lab",
name="timezone",
field=models.CharField(
blank=True,
default="Europe/London",
help_text="Timezone of the server (see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)",
max_length=64,
),
),
]

0 comments on commit 7da1e67

Please sign in to comment.