Problem With Local DateTime


If the Windows region format is set up for a right-to-left language, like "Persian". the result is similar below:
9/3/2014 12:22:11 ب.ظ
so GetRtfText function returns an invalid value.

file attachments


gmendez wrote Sep 3, 2014 at 11:33 AM

Hi!! Thanks for this comment.
I would appreciate if you could provide more detailed instructions to reproduce the issue.
NTemplates does not support RTL, but If you tell me exactly what you are trying to achieve may be I can suggest a workaround.

wrote Sep 3, 2014 at 3:15 PM

RaminMjj wrote Sep 3, 2014 at 3:15 PM

I just run your "Invoice" example.
for reproduce the issue: Control Panel--> Region--> Formats[Tab]--> Format=Persian.

gmendez wrote Sep 4, 2014 at 1:00 PM

Hi!! Thanks for reporting this.
As I said, currently NTemplates is not supporting RTL languages. I can suggest you a workaround however: Instead of using a DateTime variable, you could use a string. That string would contain your DateTime value and you can format it as you wish. So, your datasource would provide a string to NTemplates with the format you wish. Remember you always can do that for all the variables. Actually, you could provide a datasource as elaborated as you wish.
Also, I'm not sure if the "d" format for date is the right one for your language.
Are you trying to use NTemplates in a real project or just playing around?
Hope this helps.

RaminMjj wrote Sep 4, 2014 at 10:02 PM

I want to use it in real project.
in my application there is no need to use DateTime type. because our calendar is different.
I just want to report the issue.