Skip to content

Commit 6276c8d

Browse files
committed
UTC time in video
1 parent e085ef4 commit 6276c8d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

video/handlers/record.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func (rh *RecordHandler) StartRecording(c echo.Context) error {
8484
}
8585

8686
roomName := utils.GetRoomNameFromId(chatId)
87-
fileName := fmt.Sprintf("recording_%v.mp4", time.Now().Format("20060102150405"))
87+
fileName := fmt.Sprintf("recording_%v.mp4", time.Now().UTC().Format("20060102150405"))
8888
s3, err := rh.restClient.GetS3(c.Request().Context(), fileName, chatId, userPrincipalDto.UserId)
8989
if err != nil {
9090
GetLogEntry(c.Request().Context()).Errorf("Error during gettting s3 %v", err)

video/producer/rabbitmq.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func (rp *RabbitUserCountPublisher) Publish(ctx context.Context, participantIds
3333

3434
msg := amqp.Publishing{
3535
DeliveryMode: amqp.Transient,
36-
Timestamp: time.Now(),
36+
Timestamp: time.Now().UTC(),
3737
ContentType: "application/json",
3838
Body: bytea,
3939
Type: utils.GetType(event),
@@ -82,7 +82,7 @@ func (rp *RabbitUserIdsPublisher) Publish(ctx context.Context, videoCallUsersCal
8282

8383
msg := amqp.Publishing{
8484
DeliveryMode: amqp.Transient,
85-
Timestamp: time.Now(),
85+
Timestamp: time.Now().UTC(),
8686
ContentType: "application/json",
8787
Body: bytea,
8888
Type: utils.GetType(event),
@@ -130,7 +130,7 @@ func (rp *RabbitInvitePublisher) Publish(ctx context.Context, invitationDto *dto
130130

131131
msg := amqp.Publishing{
132132
DeliveryMode: amqp.Transient,
133-
Timestamp: time.Now(),
133+
Timestamp: time.Now().UTC(),
134134
ContentType: "application/json",
135135
Body: bytea,
136136
Type: utils.GetType(event),
@@ -190,7 +190,7 @@ func (rp *RabbitDialStatusPublisher) Publish(
190190

191191
msg := amqp.Publishing{
192192
DeliveryMode: amqp.Transient,
193-
Timestamp: time.Now(),
193+
Timestamp: time.Now().UTC(),
194194
ContentType: "application/json",
195195
Body: bytea,
196196
Type: utils.GetType(event),
@@ -235,7 +235,7 @@ func (rp *RabbitRecordingPublisher) Publish(ctx context.Context, recordInProgres
235235

236236
msg := amqp.Publishing{
237237
DeliveryMode: amqp.Transient,
238-
Timestamp: time.Now(),
238+
Timestamp: time.Now().UTC(),
239239
ContentType: "application/json",
240240
Body: bytea,
241241
Type: utils.GetType(event),
@@ -271,7 +271,7 @@ func (rp *RabbitNotificationsPublisher) Publish(ctx context.Context, notificatio
271271

272272
msg := amqp.Publishing{
273273
DeliveryMode: amqp.Transient,
274-
Timestamp: time.Now(),
274+
Timestamp: time.Now().UTC(),
275275
ContentType: "application/json",
276276
Body: bytea,
277277
Headers: headers,
@@ -313,7 +313,7 @@ func (rp *RabbitScreenSharePublisher) Publish(ctx context.Context, participantId
313313

314314
msg := amqp.Publishing{
315315
DeliveryMode: amqp.Transient,
316-
Timestamp: time.Now(),
316+
Timestamp: time.Now().UTC(),
317317
ContentType: "application/json",
318318
Body: bytea,
319319
Type: utils.GetType(event),

0 commit comments

Comments
 (0)