add new issue       

Issue ID:  546     Change SmartDate tests to work better internationally      
Created by rocky on 2009-08-31 10:08 AM, 3098 days ago
Project:  CSLA .NET
Category:  enhancement
Priority:  [no priority]
Status:  closed
Feature area:Testing
  Entering "issue#999" in comment creates link to id 999

show inline images      show change history

comment 2009 posted by JonnyBee on 2010-01-13 4:06 PM, 2963 days ago 
Added Setup and Cleanup method to be called before and after each test that stores original CurrentCulture and CurrentUICulture  then restores to original values after each test (using TestInitialize and TestCleanup attributes).

CurrentUICulture is used for loading resource strings (like "td" and "today")
CurrentCulture is used for numeric/date formatting settings (from Regional Settings)
comment 1574 posted by rocky on 2009-08-31 10:08 AM, 3098 days ago 

Change all references to ".CurrentUICulture" to ".CurrentCulture" in SmartDateTest.cs.  From what I make of the documentation on these properties, ".CurrentUICulture" only affects the loading of the resource files.  ".CurrentCulture" is the one that changes operation of date time formatting functions.  However, I am no expert on this - hence the reason for my question.  I have attached my modified source module from version 3.6.