mirror of
https://github.com/zotero/zotero.git
synced 2026-10-04 02:31:47 +00:00
Merge branch '3.0'
This commit is contained in:
commit
23e2d1911c
1 changed files with 2 additions and 2 deletions
|
|
@ -267,7 +267,7 @@ Zotero.Date = new function(){
|
|||
} else {
|
||||
// local style date (middle or little endian)
|
||||
date.year = m[6];
|
||||
var country = Zotero.locale.substr(3);
|
||||
var country = Zotero.locale ? Zotero.locale.substr(3) : "US";
|
||||
if(country == "US" || // The United States
|
||||
country == "FM" || // The Federated States of Micronesia
|
||||
country == "PW" || // Palau
|
||||
|
|
@ -668,7 +668,7 @@ Zotero.Date = new function(){
|
|||
*/
|
||||
function getLocaleDateOrder(){
|
||||
if (!_localeDateOrder) {
|
||||
switch (Zotero.locale.substr(-2)) {
|
||||
switch (Zotero.locale ? Zotero.locale.substr(3) : "US") {
|
||||
// middle-endian
|
||||
case 'US': // The United States
|
||||
case 'BZ': // Belize
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue