Merge pull request #2 from maggikpunkt/patch-1
Setting NLS_DATE_LANGUAGE for date conversion
This commit is contained in:
commit
3c53b526e7
@ -39,7 +39,7 @@ begin
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if p_format = g_format_rss then
|
if p_format = g_format_rss then
|
||||||
l_returnvalue := to_char(p_date, g_date_format_rss);
|
l_returnvalue := to_char(p_date, g_date_format_rss,'NLS_DATE_LANGUAGE = ENGLISH');
|
||||||
elsif p_format = g_format_rdf then
|
elsif p_format = g_format_rdf then
|
||||||
l_returnvalue := to_char(p_date, g_date_format_rdf);
|
l_returnvalue := to_char(p_date, g_date_format_rdf);
|
||||||
elsif p_format = g_format_atom then
|
elsif p_format = g_format_atom then
|
||||||
@ -75,7 +75,7 @@ begin
|
|||||||
begin
|
begin
|
||||||
if p_format = g_format_rss then
|
if p_format = g_format_rss then
|
||||||
--l_returnvalue := to_date(p_date_str, g_date_format_rss);
|
--l_returnvalue := to_date(p_date_str, g_date_format_rss);
|
||||||
l_returnvalue := to_date(substr(p_date_str,1,26), 'Dy, DD Mon YYYY HH24:MI:SS');
|
l_returnvalue := to_date(substr(p_date_str,1,26), 'Dy, DD Mon YYYY HH24:MI:SS','NLS_DATE_LANGUAGE = ENGLISH');
|
||||||
elsif p_format = g_format_rdf then
|
elsif p_format = g_format_rdf then
|
||||||
--l_returnvalue := to_date(p_date_str, g_date_format_rdf);
|
--l_returnvalue := to_date(p_date_str, g_date_format_rdf);
|
||||||
l_returnvalue := to_date(substr(p_date_str,1,19), 'YYYY-MM-DD"T"HH24:MI:SS');
|
l_returnvalue := to_date(substr(p_date_str,1,19), 'YYYY-MM-DD"T"HH24:MI:SS');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user