akeneo / pim-community-dev

[Community Development Repository] The open source Product Information Management (PIM)
http://www.akeneo.com
Other
954 stars 514 forks source link

Failing specs on master #5450

Closed a2xchip closed 7 years ago

a2xchip commented 7 years ago

I'm reporting a Bug

Some specs related to date/datetime fails if your timezone is not +1GMT (?)

Pim/Component/Connector/ArrayConverter/FlatToStandard/Attribute                      
 160  - it converts a date
      expected [array:2], but got [array:2].

Akeneo/Component/Localization/Localizer/DateLocalizer                                
  68  - it delocalizes with date format option
      expected "2015-10-28T00:00:00+01:00...", but got "2015-10-28T01:00:00+02:00...".

Pim/Component/Catalog/Normalizer/Standard/DateTimeNormalizer                         
  28  - it normalizes datetimes with paris timezone
      expected "2015-01-01T23:50:00+01:00...", but got "2015-01-01T22:50:00+01:00...".

Pim/Component/Catalog/Normalizer/Standard/DateTimeNormalizer                    
  37  - it normalizes datetimes with new york timezone
      expected "2014-12-31T18:00:00-05:00...", but got "2014-12-31T17:00:00-05:00...".

                                      99%                                        3840
851 specs
3840 examples (3836 passed, 4 failed)
99102ms
nidup commented 7 years ago

Hi Alex,

Thanks for the reporting, good catch! :tada:

Don't hesitate to open a pull request to fix this (maybe be configuring the timezone in the spec).

Cheers!