Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 $DATE$ ignores locale settings?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Apr 26 2011 :  11:00:31 PM  Show Profile  Reply with Quote
Is it only me or $DATE$ in VA snippets does not insert the date according to locale settings...

I always get the YYYY/MM/DD format instead of DD/MM/YYYY as i have it set.

feline
Whole Tomato Software

United Kingdom
18951 Posts

Posted - Apr 27 2011 :  12:59:13 PM  Show Profile  Reply with Quote
I am seeing the same effect here. I believe this is by design, since on a default install of Windows XP, which sets the region to United States the default date ordering is MM/DD/YYYY, so the snippet never respects the locale setting, except by "accident".

As I am sure you are aware this date format means dates can be sorted alphabetically, and they end up in date order, which can be a very useful feature.

This slightly longer VA snippet code produces the date in the correct format: $DAY_02$/$MONTH_02$/$YEAR$

zen is the art of being at one with the two'ness
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Apr 27 2011 :  1:06:23 PM  Show Profile  Reply with Quote
I dont buy your "by design" idea. Of course any date format can be built by concatenating date parts, though my feeling says that a $DATE$ should insert the date in locale format, except if specified differently. And this is how 90% of software handle it.

Feels to me like a flaw by design. Should at least mention the format in the tooltip/helptip/info when its not supposed to be locale aware.
Go to Top of Page

holedigger
Whole Tomato Software

145 Posts

Posted - Apr 27 2011 :  7:34:00 PM  Show Profile  Reply with Quote
I have opened case=57121 for this.

(accord: just put a '=' so topic can be found for a possible update when the case will be resolved.)

Whole Tomato Software

Edited by - accord on Apr 28 2011 03:49:12 AM
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - May 12 2011 :  12:34:56 AM  Show Profile  Reply with Quote
case=57121 is implemented in build 1848

Whole Tomato Software, Inc.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000