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

GO-151 Fix datetimes fetched from FS API #511

Merged
merged 3 commits into from
Nov 19, 2024
Merged

Conversation

luciajanikova
Copy link
Member

@luciajanikova luciajanikova commented Nov 18, 2024

Update existujucich sprav by som spravila iba cez konzolu, v migracii to zvykne byt problem.

require "active_support/all"

class Fs::MessageTest < ActiveSupport::TestCase
test "#create_inbox_messages save datetime attributes with the needed timezone" do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trošku lepší názov tu daj

@@ -78,7 +78,7 @@ def self.create_inbox_message(raw_message)
"fs_submission_status": raw_message['submission_status'],
"fs_message_type": raw_message.dig('message_container', 'message_type'),
"fs_submission_type_id": raw_message['submission_type_id'], # TODO kde pouzit? asi napr. pri vytvarani nazvu suboru pri exporte
"fs_submission_created_at": Time.parse(raw_message['submission_created_at']).getlocal,
"fs_submission_created_at": Time.zone.parse(raw_message['submission_created_at']),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tu je podozrivé že inde nemáš zone

@luciajanikova luciajanikova merged commit f1b3bdf into main Nov 19, 2024
3 checks passed
@luciajanikova luciajanikova deleted the GO-151/fix_datetimes branch November 19, 2024 07:10
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

Successfully merging this pull request may close these issues.

2 participants