%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.146 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/ppaobm/vendor/bower-asset/fullcalendar/tests/automated/datelib/ |
Upload File : |
import { formatDate, formatRange } from '@fullcalendar/core' describe('formatDate', function() { it('works with no timezone offset', function() { let str = formatDate('2018-09-04', { month: 'long', day: 'numeric', year: 'numeric' }) expect(str).toBe('September 4, 2018') }) it('works with timezone offset', function() { let str = formatDate('2018-09-04T00:00:00-05:00', { month: 'long', day: 'numeric', year: 'numeric', timeZoneName: 'short', timeZone: 'America/New_York', // but with no named tz implementation omitCommas: true // for cross-browser }) expect(str).toBe('September 4 2018 12:00 AM GMT-5') }) }) describe('formatRange', function() { it('works with no timezone offset', function() { let str = formatRange('2018-09-04', '2018-10-04', { month: 'long', day: 'numeric', year: 'numeric' }) expect(str).toBe('September 4 - October 4, 2018') }) it('works with timezone offset', function() { let str = formatRange('2018-09-04T00:00:00-05:00', '2018-10-04T00:00:00-05:00', { month: 'long', day: 'numeric', year: 'numeric', timeZoneName: 'short', timeZone: 'America/New_York', // but with no named tz implementation omitCommas: true // for cross-browser }) expect(str).toBe('September 4 - October 4 2018 12:00 AM GMT-5') }) })