Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can we change the date formatter #150

Open
KavinduDissanayake opened this issue Jun 13, 2022 · 1 comment
Open

How can we change the date formatter #150

KavinduDissanayake opened this issue Jun 13, 2022 · 1 comment

Comments

@KavinduDissanayake
Copy link

Screenshot 2022-06-13 at 18 57 26

@parmar-mehul
Copy link

Here you can how change dateFormatter, good luck!

class CustomJZRowHeader: JZRowHeader {
	public override init(frame: CGRect) {
		super.init(frame: frame)
		backgroundColor = .colorPrimary // uses correct color on Dark Mode

		self.lblTime.setTheme(textColor: .colorWhiteOnly, font: UIFont().SemiboldFont(ofSize: 9))

		self.dateFormatter.locale = Locale(identifier: AppUserDefault.shared.getValue(for: .DefaultLanguage))
	}
	required public init?(coder aDecoder: NSCoder) {
		fatalError("init(coder:) has not been implemented")
	}
}


	// Subclasses for Headers and Backgrounds
class CustomJZColumnHeader: JZColumnHeader {
	public override init(frame: CGRect) {
		super.init(frame: .zero)
		backgroundColor = .colorPrimary // the corresponding background-class will get the correct color

		self.dateFormatter.locale = Locale(identifier: AppUserDefault.shared.getValue(for: .DefaultLanguage))
	}

	required init?(coder aDecoder: NSCoder) {
		fatalError("init(coder:) has not been implemented")
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants