[XForms] now, local-dateTime have issues on Mac. Bug 427874, r=doronr+olli
git-svn-id: svn://10.0.0.236/trunk@251050 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
9487bf7c56
commit
7894da9f00
@ -145,7 +145,7 @@ nsXFormsContextInfo::SetNodeValue(const char *aName, nsIDOMNode *aNode)
|
|||||||
{
|
{
|
||||||
// Set the name of the context property.
|
// Set the name of the context property.
|
||||||
nsAutoString name;
|
nsAutoString name;
|
||||||
name.AppendLiteral(aName);
|
name.Append(NS_ConvertASCIItoUTF16(aName));
|
||||||
SetName(name);
|
SetName(name);
|
||||||
|
|
||||||
// Set the node value of the context property.
|
// Set the node value of the context property.
|
||||||
@ -178,7 +178,7 @@ nsXFormsContextInfo::SetNodesetValue(const char *aName,
|
|||||||
{
|
{
|
||||||
// Set the name of the context property.
|
// Set the name of the context property.
|
||||||
nsAutoString name;
|
nsAutoString name;
|
||||||
name.AppendLiteral(aName);
|
name.Append(NS_ConvertASCIItoUTF16(aName));
|
||||||
SetName(name);
|
SetName(name);
|
||||||
|
|
||||||
// Set the nodeset value of the context property.
|
// Set the nodeset value of the context property.
|
||||||
|
|||||||
@ -2882,7 +2882,7 @@ nsXFormsUtils::GetTime(nsAString & aResult, PRBool aUTC)
|
|||||||
|
|
||||||
PR_FormatTime(ctime, sizeof(ctime), "%Y-%m-%dT%H:%M:%S\0", &time);
|
PR_FormatTime(ctime, sizeof(ctime), "%Y-%m-%dT%H:%M:%S\0", &time);
|
||||||
|
|
||||||
aResult.AssignLiteral(ctime);
|
aResult.Assign(NS_ConvertASCIItoUTF16(ctime));
|
||||||
|
|
||||||
if (aUTC) {
|
if (aUTC) {
|
||||||
aResult.AppendLiteral("Z");
|
aResult.AppendLiteral("Z");
|
||||||
|
|||||||
@ -661,7 +661,7 @@ nsXFormsXPathFunctions::DaysToDate(double aDays, nsAString &aResult)
|
|||||||
char ctime[60];
|
char ctime[60];
|
||||||
PR_FormatTime(ctime, sizeof(ctime), "%Y-%m-%d", &et);
|
PR_FormatTime(ctime, sizeof(ctime), "%Y-%m-%d", &et);
|
||||||
|
|
||||||
aResult.AssignLiteral(ctime);
|
aResult.Assign(NS_ConvertASCIItoUTF16(ctime));
|
||||||
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
@ -693,7 +693,7 @@ nsXFormsXPathFunctions::SecondsToDateTime(double aSeconds, nsAString &aResult)
|
|||||||
char ctime[60];
|
char ctime[60];
|
||||||
PR_FormatTime(ctime, sizeof(ctime), "%Y-%m-%dT%H:%M:%SZ", &et);
|
PR_FormatTime(ctime, sizeof(ctime), "%Y-%m-%dT%H:%M:%SZ", &et);
|
||||||
|
|
||||||
aResult.AssignLiteral(ctime);
|
aResult.Assign(NS_ConvertASCIItoUTF16(ctime));
|
||||||
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user