sobhagya-sahu / datejs

Automatically exported from code.google.com/p/datejs
0 stars 0 forks source link

Does Not Function in Firefox Nightly 17.0a1 #159

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load Date.JS with <script src="date.js" type="text/javascript"></script>
2. Load page in browser
3. Open JavScript console
4. Enter: Date.today()

What is the expected output? What do you see instead?

Expected output is "Tue Aug 28 2012 00:00:00 GMT-0500 (Central Daylight Time)" 
(taken from Google Chrome's JS Console)

or "Tue Aug 28 00:00:00 CDT 2012" (taken from IE 9 Developer Tools JS Console)

Output received is "TypeError: Date.today is not a function" (taken from 
Firefox Nightly's JS Console)

What version of the product are you using? On what operating system?

I am using the latest packaged release from Google Code.

My computer stats are:
HP Compaq
Intel Core 2 Duo E6750 @ 2.66GHz 2.67 GHz
8 GB RAM
80 GB HDD (74.5 GB formatted, 10.4 GB free space)
Nvidia GeForce 8400 GS (256 MB)

My operating system is:
Windows 7 Enterprise x64

The problematic browser is:

Application Basics

Name
Firefox

Version
17.0a1

User Agent
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Firefox/17.0

Please provide any additional information below.

This also happens when I open the JavaScript console on http://www.datejs.com. 
On Chrome, I am able to use the Date.JS functions directly from the homepage in 
the console. On Firefox, I am not.

I suspect the date.js file is failing to properly override/extend the built-in 
Date objects in each browser, due to the lack of consistency between actions in 
each browser (especially Firefox, where it outright fails).

Attached file is the copy of date.js I happen to have in my possession.

Original issue reported on code.google.com by adrian.t...@gmail.com on 28 Aug 2012 at 4:07

Attachments:

GoogleCodeExporter commented 8 years ago
Works in my current build on my updated fork: 
https://github.com/abritinthebay/datejs/

Original comment by darkcr...@gmail.com on 9 Sep 2013 at 8:57