2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-26 11:16:12 +08:00

Change UTC timezone to system time

This commit is contained in:
Alexandros Ioannides
2023-07-09 00:55:32 +03:00
parent 123d560a44
commit 020309f472
12 changed files with 33 additions and 33 deletions

View File

@@ -50,7 +50,7 @@ func TestTaskMessageBuilder(t *testing.T) {
ops: func(b *TaskMessageBuilder) {
b.SetRetry(1).
SetTimeout(20 * time.Second).
SetDeadline(time.Date(2017, 3, 6, 0, 0, 0, 0, time.UTC))
SetDeadline(time.Date(2017, 3, 6, 0, 0, 0, 0, time.Local))
},
want: &base.TaskMessage{
Type: "default_task",
@@ -58,7 +58,7 @@ func TestTaskMessageBuilder(t *testing.T) {
Payload: nil,
Retry: 1,
Timeout: 20,
Deadline: time.Date(2017, 3, 6, 0, 0, 0, 0, time.UTC).Unix(),
Deadline: time.Date(2017, 3, 6, 0, 0, 0, 0, time.Local).Unix(),
},
},
{