Skip to content

Commit 075cabb

Browse files
committed
Updates to release v1.3.4
1 parent 9753f0d commit 075cabb

File tree

9 files changed

+204
-6
lines changed

9 files changed

+204
-6
lines changed

.github/CONTRIBUTING.md

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
Contributing to php-date-formatter
2+
==================================
3+
Looking to contribute something to php-date-formatter? **Here's how you can help.**
4+
5+
Please take a moment to review this document in order to make the contribution
6+
process easy and effective for everyone involved.
7+
8+
Following these guidelines helps to communicate that you respect the time of
9+
the developers managing and developing this open source project. In return,
10+
they should reciprocate that respect in addressing your issue or assessing
11+
patches and features.
12+
13+
Using the issue tracker
14+
-----------------------
15+
When [reporting bugs][reporting-bugs] or
16+
[requesting features][requesting-features], the
17+
[issue tracker on GitHub][issue-tracker] is the recommended channel to use.
18+
19+
The issue tracker **is not** a place for support requests. Refer the
20+
[plugin documentation](http://plugins.krajee.com/php-date-formatter),
21+
[plugin demos](http://plugins.krajee.com/php-date-formatter/demo), and / or refer to the
22+
[webtips Q & A forum](http://webtips.krajee.com/questions) which are the better places to get help.
23+
24+
Reporting bugs with php-date-formatter
25+
--------------------------------------
26+
We really appreciate clear bug reports that _consistently_ show an issue
27+
_within php-date-formatter_.
28+
29+
The ideal bug report follows these guidelines:
30+
31+
1. **Use the [GitHub issue search][issue-search]** — Check if the issue
32+
has already been reported.
33+
2. **Check if the issue has been fixed** — Try to reproduce the problem
34+
using the code in the `master` branch.
35+
3. **Isolate the problem** — Try to create an
36+
[isolated js fiddle][isolated-case] that consistently reproduces the problem.
37+
38+
Please try to be as detailed as possible in your bug report, especially if an
39+
isolated test case cannot be made. Some useful questions to include the answer
40+
to are:
41+
42+
- What steps can be used to reproduce the issue?
43+
- What is the bug and what is the expected outcome?
44+
- What browser(s) and Operating System have you tested with?
45+
- Does the bug happen consistently across all tested browsers?
46+
- What version of jQuery are you using? And what version of php-date-formatter?
47+
- Are you using php-date-formatter with other plugins?
48+
49+
All of these questions will help others fix and identify any potential bugs.
50+
51+
Requesting features in php-date-formatter
52+
-----------------------------------------
53+
Before starting work on a major feature for php-date-formatter, **read the
54+
[documentation](http://plugins.krajee.com/php-date-formatter) first** or you may risk spending a considerable amount of
55+
time on something which the project developers are not interested in bringing into the project.
56+
57+
### Submitting a pull request
58+
59+
We use GitHub's pull request system for submitting patches. Here are some
60+
guidelines to follow when creating the pull request for your fix.
61+
62+
1. Make sure to create a ticket for your pull request. This will serve as the
63+
bug ticket, and any discussion about the bug will take place there. Your pull
64+
request will be focused on the specific changes that fix the bug.
65+
2. Make sure to reference the ticket you are fixing within your pull request.
66+
This will allow us to close off the ticket once we merge the pull request, or
67+
follow up on the ticket if there are any related blocking issues.
68+
3. Explain why the specific change was made. Not everyone who is reviewing your
69+
pull request will be familiar with the problem it is fixing.
70+
4. Run your tests first. If your tests aren't passing, the pull request won't
71+
be able to be merged. If you're breaking existing tests, make sure that you
72+
aren't causing any breaking changes.
73+
5. Only include source changes. While it's not required, only including changes
74+
from the `src` directory will prevent merge conflicts from occuring. Making
75+
this happen can be as a simple as not committing changes from the `dist`
76+
directory.
77+
78+
By following these steps, you will make it easier for your pull request to be
79+
reviewed and eventually merged.
80+
81+
Triaging issues and pull requests
82+
---------------------------------
83+
Anyone can help the project maintainers triage issues and review pull requests.
84+
85+
### Handling new issues
86+
87+
php-date-formatter regularly receives new issues which need to be tested and organized.
88+
89+
When a new issue that comes in that is similar to another existing issue, it
90+
should be checked to make sure it is not a duplicate. Duplicates issues should
91+
be marked by replying to the issue with "Duplicate of #[issue number]" where
92+
`[issue number]` is the url or issue number for the existing issue. This will
93+
allow the project maintainers to quickly close off additional issues and keep
94+
the discussion focused within a single issue.
95+
96+
If you can test issues that are reported to php-date-formatter that contain test cases and
97+
confirm under what conditions bugs happen, that will allow others to identify
98+
what causes a bug quicker.
99+
100+
### Reviewing pull requests
101+
102+
It is very common for pull requests to be opened for issues that contain a clear
103+
solution to the problem. These pull requests should be rigorously reviewed by
104+
the community before being accepted. If you are not sure about a piece of
105+
submitted code, or know of a better way to do something, do not hesitate to make
106+
a comment on the pull request.
107+
108+
### Reviving old tickets
109+
110+
If you come across tickets which have not been updated for a while, you are
111+
encouraged to revive them. While this can be as simple as saying `:+1:`, it is
112+
best if you can include more information on the issue. Common bugs and feature
113+
requests are more likely to be fixed, whether it is by the community or the
114+
developers, so keeping tickets up to date is encouraged.
115+
116+
Licensing
117+
---------
118+
119+
It should also be made clear that **all code contributed to php-date-formatter** must be
120+
licensable under the [BSD-3 license][licensing]. Code that cannot be released
121+
under this license **cannot be accepted** into the project.
122+
123+
[isolated-case]: https://jsfiddle.net/
124+
[issue-search]: https://github.com/kartik-v/php-date-formatter/search?q=&type=Issues
125+
[issue-tracker]: https://github.com/kartik-v/php-date-formatter/issues
126+
[licensing]: https://github.com/kartik-v/php-date-formatter/blob/master/LICENSE.md
127+
[reporting-bugs]: #reporting-bugs-with-php-date-formatter
128+
[requesting-features]: #requesting-features-in-php-date-formatter

.github/ISSUE_TEMPLATE.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
## Prerequisites
2+
3+
- [ ] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
4+
- [ ] The issue still exists against the latest `master` branch of php-date-formatter.
5+
- [ ] This is not an usage question. I confirm having read the plugin [documentation](http://plugins.krajee.com/php-date-formatter) and [demos](http://plugins.krajee.com/php-date-formatter/demo).
6+
- [ ] This is not a general programming / coding question. (Those should be directed to the [webtips Q & A forum](http://webtips.krajee.com/questions)).
7+
- [ ] I have attempted to find the simplest possible steps to reproduce the issue.
8+
- [ ] I have included a failing test as a pull request (Optional).
9+
10+
## Steps to reproduce the issue
11+
12+
1.
13+
2.
14+
3.
15+
16+
## Expected behavior and actual behavior
17+
18+
When I follow those steps, I see...
19+
20+
I was expecting...
21+
22+
## Environment
23+
24+
Browsers
25+
26+
- [ ] Google Chrome
27+
- [ ] Mozilla Firefox
28+
- [ ] Internet Explorer
29+
- [ ] Safari
30+
31+
Operating System
32+
33+
- [ ] Windows
34+
- [ ] Mac OS X
35+
- [ ] Linux
36+
- [ ] Mobile
37+
38+
Libraries
39+
40+
- jQuery version:
41+
- php-date-formatter version:
42+
43+
## Isolating the problem
44+
45+
- [ ] This bug happens [on the plugin demos page](http://plugins.krajee.com/php-date-formatter/demo)
46+
- [ ] The bug happens consistently across all tested browsers
47+
- [ ] This bug happens when using php-date-formatter without other plugins
48+
- [ ] I can reproduce this bug in [a jsbin](https://jsbin.com/)

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## Scope
2+
This pull request includes a
3+
4+
- [ ] Bug fix
5+
- [ ] New feature
6+
- [ ] Translation
7+
8+
## Changes
9+
The following changes were made
10+
11+
-
12+
-
13+
-
14+
15+
## Related Issues
16+
If this is related to an existing ticket, include a link to it as well.

CHANGE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ Change Log: `php-date-formatter`
33

44
## Version 1.3.4
55

6-
**Date:** 17-Mar-2016
6+
**Date:** 08-Jan-2017
77

88
1. (enh #9): Enhance validation for invalid input date string in `guessDate`.
99
2. (enh #10, #11): Display escaped characters correctly via `formatDate`.
1010
3. (bug #12): Correct hour merdian validation.
11+
4. Add github contribution and issue/PR logging templates.
1112

1213
## Version 1.3.3
1314

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2014 - 2016, Kartik Visweswaran
1+
Copyright (c) 2014 - 2017, Kartik Visweswaran
22
Krajee.com
33
All rights reserved.
44

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
php-date-formatter
22
==================
33

4-
[![BOWER version](https://badge-me.herokuapp.com/api/bower/kartik-v/php-date-formatter.png)](http://badges.enytc.com/for/bower/kartik-v/php-date-formatter)
4+
[![Bower version](https://badge.fury.io/bo/php-date-formatter.svg)](http://badge.fury.io/bo/php-date-formatter)
55
[![Stable Version](https://poser.pugx.org/kartik-v/php-date-formatter/v/stable)](https://packagist.org/packages/kartik-v/php-date-formatter)
66
[![Unstable Version](https://poser.pugx.org/kartik-v/php-date-formatter/v/unstable)](https://packagist.org/packages/kartik-v/php-date-formatter)
77
[![License](https://poser.pugx.org/kartik-v/php-date-formatter/license)](https://packagist.org/packages/kartik-v/php-date-formatter)
@@ -13,6 +13,8 @@ to read and write date/timestamps to the database easily when working with PHP s
1313
timestamp to database in one format, but displaying it on client or html forms in another format. Maintaining a consistent PHP Date time format for both
1414
server side and client side validation should help in building extensible applications with various PHP frameworks easily.
1515

16+
This library is a standalone javascript library and does not depend on other libraries or plugins like jQuery.
17+
1618
The latest release of the library is v1.3.4. Check the [CHANGE LOG](https://github.com/kartik-v/php-date-formatter/blob/master/CHANGE.md) for details.
1719

1820
## Features

examples/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8"/>
55
<title>Krajee JQuery Plugins - &copy; Kartik</title>
6-
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet">
6+
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
77
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
88
<script src="../js/php-date-formatter.js" type="text/javascript"></script>
99
</head>

js/php-date-formatter.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
/*!
2-
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2016
2+
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2017
33
* @version 1.3.4
44
*
55
* Date formatter utility library that allows formatting date/time variables or Date objects using PHP DateTime format.
6+
* This library is a standalone javascript library and does not depend on other libraries or plugins like jQuery.
7+
*
68
* @see http://php.net/manual/en/function.date.php
79
*
810
* For more JQuery plugins visit http://plugins.krajee.com

js/php-date-formatter.min.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)